2014-10-07 70 views
-1
lee-ui-MacBook-Pro:test1 ErinLee$ sudo npm install -g express 
Password: 
[email protected] /usr/local/lib/node_modules/express 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected]) 
├── [email protected] ([email protected]) 
└── [email protected] ([email protected]) 
lee-ui-MacBook-Pro:test1 ErinLee$ express 
-bash: express: command not found 
lee-ui-MacBook-Pro:test1 ErinLee$ express test1 
-bash: express: command not found 
lee-ui-MacBook-Pro:test1 ErinLee$ 

怎麼回事?爲什麼我不能創建表達? 我在終端Mac OS X上node.js(如何創建快遞)

回答

1

表達的node.js模塊。

您正在尋找快遞發電機

npm install -g express-generator 

https://github.com/expressjs/generator

+0

這是正確的答案。另請看快速指南http://expressjs.com/guide.html – 2014-10-07 07:48:55