![](/img/trans.png)
[英]How to install nodemon Nodejs on macOS? nodemon keeping show : command not found
[英]Nodejs npm failed to install nodemon
我想在我的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用戶名和密碼進行安裝
看起來好像安裝正確。
唯一的錯誤是警告:
npm WARN optional dep failed, continuing fsevents@1.0.12
請注意, fsevents
僅用於支持OS X主機( https://github.com/strongloop/fsevents ),而在Linux / Ubuntu上則不需要。
您應該能夠在終端中運行nodemon
命令進行驗證。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.