2014-02-25 33 views
3

我不知道這是有目的的,但運行時,...命令沒有發現當試圖運行nodeschool教訓

npm install learnyounode -g 

..command在終端,正在我家創建的模塊目錄。當我嘗試從運行npm install的目錄運行'learnyounode'命令時,我得到消息'command not found'。我查看了usr目錄,但learnyounode目錄不在那裏。

一切intalls後,我得到以下輸出

/Users/username/npm/bin/learnyounode -> /Users/username/npm/lib/node_modules/learnyounode/learnyounode.js 
[email protected] /Users/username/npm/lib/node_modules/learnyounode 
├── [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]) 

PS。我在我的usr文件夾中安裝了全新的節點。我更擔心在未來我想通過NPM安裝其他軟件包時會發生此問題。

+0

我剛通過npm安裝了另一個軟件包,它正確安裝了它 - nodechool安裝有問題嗎? – Andre

回答

3

我安裝時沒有-g標誌,它全局安裝。