我在Mac上运行El Capitan.我有节点v5.6.0和npm v3.6.0.当我尝试运行nodemon时,我得到:
-bash: nodemon: command not found
Run Code Online (Sandbox Code Playgroud)
我认为这可能意味着我没有安装nodemon,所以当我尝试使用...时安装它
sudo npm install -g nodemon
Run Code Online (Sandbox Code Playgroud)
......我明白了:
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 …Run Code Online (Sandbox Code Playgroud)