Error Code Portal
Node.jsNode.jsError code

ERR_SOCKET_BAD_PORT

socket bad port

Code ERR_SOCKET_BAD_PORT · An issue reported by Node.js.

An API function expecting a port >= 0 and < 65536 received an invalid value.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.