ERR_SOCKET_BAD_PORTERR_SOCKET_BAD_PORT
An invalid port number was specified for a network operation.
TypeError: Assignment to constant variableAn attempt was made to reassign a variable declared with const.
You declared a variable with const and later tried to reassign it. Const variables cannot be reassigned after initialization. Note that for objects/arrays, the reference is constant but the contents can still be mutated.
Use let instead of const if you need to reassign the variable. If you need a mutable reference, use let. If you need to modify an object's properties, you can still do so with const; only reassignment is prohibited.
const x = 1; x = 2; // TypeError: Assignment to constant variableERR_SOCKET_BAD_PORTAn invalid port number was specified for a network operation.
TypeError: x is not iterableA value that is not iterable was used where an iterable was expected, such as in a for...of loop or spread operator.
TypeErrorA value is not of the expected type. This is the most common JavaScript error, occurring when an operation encounters a value of the wrong type.
ENOSPCThe disk is full or the inode table is exhausted.
ReferenceError: Invalid left-hand side in assignmentAn assignment was attempted to something that cannot be assigned to.
Error: Cannot find moduleNode.js could not locate the specified module in any of the searched paths.