2016-07-03 34 views
0

我想在我的ubuntu上安裝Nodemon,但是我得到一個錯誤,但我不能。Nodejs npm未能安裝nodemon

#npm install -g nodemon 

npm WARN optional dep failed, continuing [email protected] 
/usr/bin/nodemon -> /usr/lib/node_modules/nodemon/bin/nodemon.js 
[email protected] /usr/lib/node_modules/nodemon 
├── [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]) 

,這是我的Ubuntu版本:

[email protected]:/home/salam# lsb_release -a 
No LSB modules are available. 
Distributor ID: Ubuntu 
Description: Ubuntu 14.04.4 LTS 
Release:  14.04 
Codename:  trusty 

我使用root用戶名和密碼進行安裝

回答

1

看起來它正確安裝。

唯一的錯誤是一個警告:

npm WARN optional dep failed, continuing [email protected] 

請注意,fsevents只支持OS X主機(https://github.com/strongloop/fsevents),而不是需要在Linux/Ubuntu的。

您應該能夠在終端中運行nodemon命令來驗證這一點。