I would like to manage node.js versions using the n - node version manager.
I attempted to install n by following the Github docs https://github.com/tj/n and input the following in my terminal:
sudo npm install -g n
After entering my password my terminal returns:
/usr/local/lib/node_modules/node/bin/n -> /usr/local/lib/node_modules/node/lib/node_modules/n/bin/n
+ [email protected]
However, after installing n my terminal doesn't recognize the relevant commands and instead states:
bash: n: command not found
My current node version installed is v12.3.0, while my npm is version 6.9.0.
Any help would be greatly appreciated.
Thanks
npm prefix -g
show? What OS are you on? What doescommand -v npm
show? – Marsh