在Ubuntu下准备Nodejs开发环境


~ sudo apt-get install nodejs
~ sudo apt-get install npm


通过apt-get安装nodejs 后:

~ node -v

出现:
The program 'node' can be found in the following packages:
 * node
 * nodejs-legacy
Try: apt-get install <selected package>


解决:
sudo ln -s `which nodejs` /usr/local/bin/node  原文
 安装Express:

With Express 4, the application generator was removed and is now available as 'express-generator.' 
So you need to :npm install -g express-generator instead.

你可能感兴趣的:(在Ubuntu下准备Nodejs开发环境)