ubuntu安装nodejs

下载

http://nodejs.cn/download/

软链接

sudo ln -s /home/wzx/program/node-v8.11.4-linux-x64/bin/node /usr/local/bin/
sudo ln -s /home/wzx/program/node-v8.11.4-linux-x64/bin/npm /usr/local/bin/

淘宝镜像

npm install -g cnpm --registry=https://registry.npm.taobao.org
sudo ln -s /home/wzx/program/node-v8.11.4-linux-x64/bin/cnpm /usr/local/bin/

安装依赖

cnpm install

运行

右键package.json选择show npm scripts

参考资料

https://blog.csdn.net/dwjpeng2/article/details/82994321

https://www.cnblogs.com/TimeSay/p/10911513.html

https://www.jianshu.com/p/264533cc1c82

https://blog.csdn.net/dyxbhb/article/details/83476462

https://blog.csdn.net/ta893115871/article/details/7458869/

https://www.cnblogs.com/sese/p/10119511.html