nodemon不工作:

编程入门 行业动态 更新时间:2024-10-28 21:14:55
本文介绍了nodemon不工作:-bash:nodemon:命令未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我在Mac上跑El Capitan。我有节点v5.6.0和npm v3.6.0。 当我尝试运行nodemon时,我得到:

-bash:nodemon:command not found

我以为这可能意味着我没有安装nodemon,所以当我尝试使用...安装

sudo npm intall -g nodemon

...我得到这个:

npm ERR!达尔文15.2.0 npm ERR! argv/ usr / local / bin / node/ usr / local / bin / npminstall-gnodemon npm ERR!节点v5.6.0 npm ERR! npm v3.6.0 npm ERR!路径/ usr / local / bin / nodemon npm ERR!代码EEXIST npm ERR!拒绝删除/ usr / local / bin / nodemon:../lib/node_modules/nodemon/nodemon.js符号链接目标不受npm / usr / local npm ERR的控制!文件存在:/ usr / local / bin / nodemon npm ERR!将其移开,然后重试。 npm ERR!请包含以下文件与任何支持请求: npm ERR! /Users/brianeoneill/npm-debug.log

如果它有所作为,我试图在使用Express v4.13.1的项目上运行nodemon

感谢您提供的任何帮助!

解决方案

我尝试了以下操作,没有工作:

npm uninstall nodemon sudo npm uninstall -g nodemon

工作是什么:

sudo npm install -g --force nodemon

I'm on a Mac running El Capitan. I have node v5.6.0 and npm v3.6.0. When I try to run nodemon, I get:

-bash: nodemon: command not found

I thought this may mean that I didn't have nodemon installed, so when I tried to install it using...

sudo npm intall -g nodemon

...I get this:

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

If it makes a difference, I'm trying to run nodemon on a project that uses Express v4.13.1

Thanks for any help you can offer!

解决方案

I tried the following, and none worked:

npm uninstall nodemon sudo npm uninstall -g nodemon

What did work was:

sudo npm install -g --force nodemon

更多推荐

nodemon不工作:

本文发布于:2023-07-05 01:12:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1031208.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工作   nodemon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!