0
我有一個蘋果,我運行下面的代碼作爲全球安裝快遞:NPM快遞不安裝命令
sudo npm install -g express
這是給下面的輸出
new-host:nodetraining admin$ sudo npm install -g express
[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])
new-host:nodetraining admin$
但它是不安裝命令模塊,所以我不能使用以下命令:
express <projectname>
這是當我嘗試使用快遞命令反正:
new-host:nodetraining admin$ express airline
-bash: express: command not found
new-host:nodetraining admin$
有人可以幫忙嗎?
我只是做了,它仍然沒有工作: 'code'new- host:nodetraining admin $ npm install express-generator [email protected] ../../node_modules/express-generator ├──[email protected]([email protected]) └──mkdirp @ 0.5.0([email protected]) new-host:nodetraining admin $ express airline -bash:express:command not found new-host:nodetraining admin $'code' – 2014-10-10 08:07:07