nodejs 安装配置 for ubuntu

Posted on 2016-08-01 10:18  沉睡的码农  阅读(141)  评论(0)    收藏  举报

安装nodejs


sudo apt-get update

sudo apt-get install nodejs -g  #全局安装


 

安装npm


 

sudo apt-get install npm

#查看版本

npm -v


 

安装express


sudo apt-get install express -g #全局安装

sudo apt-get install express #本地安装

#查看帮助 

express -help

#查看版本 

express -V

#创建应用

express -t ejs  projectname

$cd projectname && npm install

#启动应用 

DEBUG=my-application ./bin/www