用npm安装快递 [英] install express with npm
问题描述
$ sudo npm install -g express
安装就行了。但是当我尝试用快捷方式创建一个项目为$ code> $ express myProject 我收到错误说
程序'express'当前未安装。您可以通过键入以下方式安装
:sudo apt-get install node-express
我必须包含一些路径$ PATH为了运行快递?请帮助。
使用Express 4,应用程序生成器已被删除,现在可用作express-generator,所以你需要 npm install -g express-generator
。
I recently installed nodejs version 0.10.26 on ubuntu 64 bit. node -v and npm -v commands run fine and I can see the correct versions. When I do a $ sudo npm install -g express
the installation goes fine. But when I try to create a project with express as $ express myProject
I get an error saying
The program 'express' is currently not installed. You can install it by typing: sudo apt-get install node-express
Do I have to include some path in $PATH in order to run express? Please help.
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.
这篇关于用npm安装快递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!