在Ubuntu下准备Nodejs开发环境

来源:互联网 发布:考试管理系统数据库 编辑:程序博客网 时间:2024/06/11 21:40


~ 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.

0 0
原创粉丝点击