问题描述
我花了很多时间寻找解决方案,但没有找到任何东西(我的情况)所以...
我查了全球包 npm list -g --depth = 0
并获得了
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
但是当我去的时候文件夹 C:\ Users \ Servgey \ AppData \Roaming\\\
,没有nodemon
pm\\\
ode_modules
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).
您只需要添加 C:\ Users \ Servgey \ AppData \ Rooaming \ nnpm
和 C:\\\ local
(当然,文件路径为npm和local)到系统变量(控制面板\系统和安全性System \高级系统设置)。
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).
然后重启你的电脑
这篇关于bash:找不到nodemon命令windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!