bash:nodemon命令找不到windows 10

我花了很多时间寻找解决scheme,但没有find任何东西(与我的情况)所以…我检查全局软件包npm list -g --depth=0并得到
在这里输入图像说明

但是当我去到文件夹C:\Users\Sergey\AppData\Roaming\npm\node_modules ,没有nodemon 在这里输入图像说明

我知道这个问题已经存在了。 拜托帮帮我吧

你有没有尝试重新安装nodemon? npm i -g nodemon@latest

如果这样也行不通,请尝试在您的项目中安装nodemon,但不要将其另存为依赖项。

我find了一个解决scheme(在我的情况)。

所有你需要的是添加C:\Users\Sergey\AppData\Roaming\npmC:\usr\local (当然你的文件path是npm和local)到系统variables(Control Panel \ System和Security \ System \ Advanced系统设置)

之后,重新启动您的电脑

在这里输入图像说明

你也可以删除节点文件夹并重新安装nodeJS