Nodemon已经在Windows 10上的我的node.js网站上工作了几个月,没有任何问题。突然我执行nodemon
时说
bash:nodemon:找不到命令
当我尝试使用npm install -g nodemon
重新安装它时,它报告:
C:\Users\ADMIN\AppData\Roaming\npm\nodemon -> C:\Users\ADMIN\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js
> nodemon@1.19.4 postinstall C:\Users\ADMIN\AppData\Roaming\npm\node_modules\nodemon
> node bin/postinstall || exit 0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\nodemon\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ nodemon@1.19.4
updated 1 package in 7.35s
当我检查它是否与npm list -g --depth=0
一起安装时,它报告它在那里:
C:\Users\ADMIN\AppData\Roaming\npm
+-- browser-sync@2.24.7
+-- less@3.9.0
+-- less-watch-compiler@1.13.0
+-- nodemon@1.19.4
+-- npm@6.4.1
+-- tsun@0.3.8
+-- typescript@2.9.2
`-- windows-build-tools@5.0.0
我尝试过npm uninstall nodemon
并重新安装它,但无济于事。
如何让Nodemon在Windows 10上再次工作?