1、node.js 更新
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
2、移除node.js
sudo apt-get remove nodejs
3、安装新node.js
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo curl http://npmjs.org/install.sh | sudo sh
4、安装express web框架
npm install -g express
5、新建node项目
express name
cd name
npm install
node app.js
6、切换国内镜像
npm config set registry http://registry.cnpmjs.org
7、WebStorm 注册码
EMBRACE
License Key:
User Name:
EMBRACE
===== LICENSE BEGIN =====
24718-12042010
00001h6wzKLpfo3gmjJ8xoTPw5mQvY
YA8vwka9tH!vibaUKS4FIDIkUfy!!f
3C"rQCIRbShpSlDcFT1xmJi5h0yQS6
===== LICENSE END =====