ACM@UIUC TIL logo ACM@UIUC TIL

Updating Nodejs

Using npm

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Using nvm

This is my preferred way since its similar to ruby version management. See Installing nvm for instructions on installing nvm

nvm install VERSION
nvm use VERSION