Ubuntu 16.04/CentOS 6.9安装Node.js 6.9.5

Ubuntu:
CentOS:
wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.xz
tar -xvf node-v6.9.5-linux-x64.tar.xz
sudo mv node-v6.9.5-linux-x64 /usr/local/node
sudo ln -s /usr/local/node/bin/node /usr/local/bin/node
sudo ln -s /usr/local/node/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm

方法大致就是这样,这里采用的是6.9.5版本,当然可以下载最新版本的,参考官网:https://nodejs.org/en/download/

 

参考:

http://blog.csdn.net/hiwoshixiaoyu/article/details/52926323

https://www.cnblogs.com/gispathfinder/p/6189552.html

https://www.cnblogs.com/liuyi2614/p/6383336.html

posted @ 2018-01-21 17:23  EasonJim  阅读(1103)  评论(0编辑  收藏  举报