我无法在 windows 10 上启动 nodemon
I cant start nodemon on my windows 10
我最近开始学习 Node,虽然没有 nodemon,但我成功地 运行 我的第一个 node 应用程序。我使用 npm install -g nodemon
在全球范围内安装了 nodemon,它成功安装了。
如果我然后 运行 nodemon index
我看到以下错误
[nodemon] 1.12.1
[nodemon] to restart at any time, enter
rs
[nodemon] watching: *.*
[nodemon] starting ``node index index.js
events.js:182
throw er; // Unhandled 'error' event
^
`Error: spawn cmd ENOENT
at _errnoException (util.js:1019:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
at onErrorNT (internal/child_process.js:374:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
`
请提出您的建议
检查您的 PATH 变量是否包括:C:\Windows\System32\
。如果没有,请添加。
这是路径问题
1. 将C:\Windows\System32\
添加到行尾的PATH环境变量
还有
**`Verify the npm folder exists at the following location C:\Users\My-UserName\AppData\Roaming\npm`**
Try to run npm cache clean
我最近开始学习 Node,虽然没有 nodemon,但我成功地 运行 我的第一个 node 应用程序。我使用 npm install -g nodemon
在全球范围内安装了 nodemon,它成功安装了。
如果我然后 运行 nodemon index
我看到以下错误
[nodemon] 1.12.1
[nodemon] to restart at any time, enter
rs
[nodemon] watching: *.*
[nodemon] starting ``node index index.js
events.js:182
throw er; // Unhandled 'error' event
^
`Error: spawn cmd ENOENT
at _errnoException (util.js:1019:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)
at onErrorNT (internal/child_process.js:374:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
` 请提出您的建议
检查您的 PATH 变量是否包括:C:\Windows\System32\
。如果没有,请添加。
这是路径问题
1. 将C:\Windows\System32\
添加到行尾的PATH环境变量
还有
**`Verify the npm folder exists at the following location C:\Users\My-UserName\AppData\Roaming\npm`**
Try to run npm cache clean