In that case I will need more information. What node is sending the error "RangeError: The value of "value" is out of range. It must be >= 0 and <= 65535. Received -2"
?
Also could you post the flow that you are using that is causing this error? Here is a link explaining how to post flows: https://discourse.nodered.org/t/how-to-share-code-or-flow-json