-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(如何創建快遞)
這是正確的答案。另請看快速指南http://expressjs.com/guide.html – 2014-10-07 07:48:55