简体   繁体   English

Node.js npm无法安装nodemon

[英]Nodejs npm failed to install nodemon

I want to install Nodemon on my ubuntu, but I get an error and I could not. 我想在我的ubuntu上安装Nodemon ,但出现错误,但无法。

#npm install -g nodemon

npm WARN optional dep failed, continuing fsevents@1.0.12
/usr/bin/nodemon -> /usr/lib/node_modules/nodemon/bin/nodemon.js
nodemon@1.9.2 /usr/lib/node_modules/nodemon
├── ignore-by-default@1.0.1
├── undefsafe@0.0.3
├── es6-promise@3.2.1
├── debug@2.2.0 (ms@0.7.1)
├── minimatch@3.0.2 (brace-expansion@1.1.5)
├── touch@1.0.0 (nopt@1.0.10)
├── lodash.defaults@3.1.2 (lodash.restparam@3.6.1, lodash.assign@3.2.0)
├── ps-tree@1.1.0 (event-stream@3.3.3)
├── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, string-length@1.0.1, chalk@1.1.3, repeating@1.1.3, configstore@1.4.0, latest-version@1.0.1)
└── chokidar@1.6.0 (path-is-absolute@1.0.0, inherits@2.0.1, glob-parent@2.0.0, async-each@1.0.0, is-glob@2.0.1, is-binary-path@1.0.1, readdirp@2.1.0, anymatch@1.3.0)

and this is my ubuntu version: 这是我的Ubuntu版本:

root@ubuntu:/home/salam# lsb_release -a 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty

I'm using the root username and password to install it 我正在使用root用户名和密码进行安装

It looks like it installed correctly. 看起来好像安装正确。

The only error is a warning: 唯一的错误是警告:

npm WARN optional dep failed, continuing fsevents@1.0.12

Please note that fsevents is only for supporting OS X hosts ( https://github.com/strongloop/fsevents ) and is not needed on Linux/Ubuntu. 请注意, fsevents仅用于支持OS X主机( https://github.com/strongloop/fsevents ),而在Linux / Ubuntu上则不需要。

You should be able to run the nodemon command in your terminal to verify this. 您应该能够在终端中运行nodemon命令进行验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM