我在运行El Capitan的Mac上。我有节点v5.6.0和npm v3.6.0。当我尝试运行nodemon时,我得到:
-bash: nodemon: command not found
我认为这可能意味着我没有安装nodemon,所以当我尝试使用...安装它时...
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的项目上运行nodemon
谢谢你的尽心帮助!
npm uninstall nodemon