How to exit the console

Type the following to close the NodeJS REPL and go to the terminal:

> process.exit()

Set nvm default node.js version

# Install the version that you would like 
$ nvm install 6.1.0

# Set 6.1.0 (or another version) as default
$ nvm alias default 6.1.0