简体   繁体   中英

bash: nodemon command not found windows 10

I spent a lot of time looking for a solution, but didn't find anything (with my case) So... I checked global packages npm list -g --depth=0 and got
在此输入图像描述

But when I went to the folder C:\\Users\\Sergey\\AppData\\Roaming\\npm\\node_modules , there was no nodemon 在此输入图像描述

I know this question has already existed. Please, help me anyone...

I found a solution (in my case).

All you need is to add C:\\Users\\Sergey\\AppData\\Roaming\\npm and C:\\usr\\local (of course with your file paths npm and local) to System variables (Control Panel\\System and Security\\System\\Advanced system settings) .

And after that restart your PC

在此输入图像描述

Have you tried re-installing nodemon? npm i -g nodemon@latest

If that too does not work, try installing nodemon in your project, dont't save it as dependency though.

您也可以删除节点文件夹并再次安装nodeJS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM