2015-02-11 25 views
0

我的節點突然停止工作,因此我刪除了所有內容並使用自制軟件安裝了節點。重新安裝後不能運行任何節點包

現在我不能安裝的呼嚕聲,nodemon,涼亭等

Pers-MacBook-Air:backendMD perstrom$ sudo npm install -g grunt-cli 
Password: 
/Users/perstrom/.node/bin/grunt -> /Users/perstrom/.node/lib/node_modules/grunt-cli/bin/grunt 
[email protected] /Users/perstrom/.node/lib/node_modules/grunt-cli 
├── [email protected] 
├── [email protected] ([email protected]) 
└── [email protected] ([email protected], [email protected]) 
Pers-MacBook-Air:backendMD perstrom$ grunt --version 
bash: grunt: command not found 
Pers-MacBook-Air:backendMD perstrom$ 

什麼可能是錯誤的?我該如何調試?

+0

你嘗試重新啓動終端? – lascort 2015-02-11 18:47:31

回答

1

嘗試耗費您的路徑(請確保此文件夾包含箱):

export PATH=/Users/perstrom/.node/bin:$PATH 
+0

Thx!用這個掙幾個小時。 – Per 2015-02-11 18:48:22

+0

太棒了,很高興我幫了忙 – 2015-02-11 18:48:51