switch version of node via nvm code example
Example 1: use a specific version of node
nvm use {Node version}
Example 2: how to change node version
nvm use --delete-prefix $NODE_VERSION
example:
nvm use --delete-prefix v8.9.4
nvm use {Node version}
nvm use --delete-prefix $NODE_VERSION
example:
nvm use --delete-prefix v8.9.4