我在一台运行 El Capitan 的 Mac 上,我有节点 v5.6.0和 npm v3.6.0。 当我试图逃避恶魔,我得到:
-bash: nodemon: command not found
我想这可能意味着我没有安装恶魔,所以当我试图安装它使用..。
sudo npm install -g nodemon
我明白了:
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "nodemon"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! path /usr/local/bin/nodemon
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/nodemon: ../lib/node_modules/nodemon/nodemon.js symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/nodemon
npm ERR! Move it away, and try again.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/brianeoneill/npm-debug.log
如果有区别的话,我尝试在一个使用 Express v4.13.1的项目上运行 noemon
谢谢你的帮助!