1、sudo apt-get install g++ curl libssl-dev apache2-utils 2、下载node.js安装包:http://nodejs.org/3、解压安装:tar -zxf node-v.x.x.tar.gz ./configure && make && make install4、node –version 查看是否安装成功npm install express -g
如果出现错误“The program 'express' is currently not installed. You can install it by typing: apt-get install nod..."解决方法:npm install -g express-generator创建项目 请看上一篇文章:nodejs项目创建...