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


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Foxbrush 的頭像
    Foxbrush

    Foxbrush

    Foxbrush 發表在 痞客邦 留言(0) 人氣()