Nodejs npm无法安装nodemon

时间:2016-07-03 15:34:17

标签: javascript node.js ubuntu

我想在我的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)

这是我的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

我正在使用root用户名和密码来安装它

1 个答案:

答案 0 :(得分:1)

看起来安装正确。

唯一的错误是警告:

npm WARN optional dep failed, continuing fsevents@1.0.12

请注意fsevents仅用于支持OS X主机(https://github.com/strongloop/fsevents),在Linux / Ubuntu上不需要。

您应该能够在终端中运行nodemon命令来验证这一点。