bash: nodemon command not found windows 10

2019-05-14 09:44发布

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
enter image description here

But when I went to the folder C:\Users\Sergey\AppData\Roaming\npm\node_modules, there was no nodemon enter image description here

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

3条回答
成全新的幸福
2楼-- · 2019-05-14 10:30

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

enter image description here

查看更多
甜甜的少女心
3楼-- · 2019-05-14 10:34

Also you may to remove node folder and install nodeJS again

查看更多
Ridiculous、
4楼-- · 2019-05-14 10:43

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.

查看更多
登录 后发表回答