First time using node.js – “ReferenceError: node is not defined”

It looks like you have entered the node REPL and then typed node -v

The good news is that this means node is working!

To check the version from here you can type process.version to get the node version. Alternatively type process.exit() to exit the node REPL and get back to bash (or equivalent terminal).

From here node -v should just output the node version.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)