close
From: https://davidwalsh.name/upgrade-nodejs
From: http://tecadmin.net/upgrade-nodejs-via-npm/
----------------------------------------------------------------------
1) sudo npm cache clean -f
=> Now clean all npm cache from your system forcefully.
2) sudo npm install -g n
=> Install n modules using npm command.
3) sudo n stable / sudo n 4.2.2
=> Install the stable or v4.2.2 of NodeJS
4) sudo ln -sf /usr/local/n/versions/node/5.0.0/bin/node /usr/bin/node
=> Optional. Now link your node binary with latest nodejs installed binary file using following command
5) node -v
=> Check out version
全站熱搜
留言列表