`npm install -g nodemon`不安装nodemon

时间:2019-11-03 12:39:15

标签: node.js windows-10 nodemon

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上再次工作?

0 个答案:

没有答案