node.js - 事件.js :180 throw er;//Unhandled 'error'

Error while npm start in Windows 10

在我的 windows 机器上的 vscode 中安装 npm 后,我运行 npm,它启动但显示上述错误。我清理了缓存,但没有解决。

我在谷歌上搜索过,但没有看到这样的异常

events.js:180 throw er; // Unhandled 'error' event ^

最佳答案

这个问题与这个问题非常相似: How can I fix ('throw er; // Unhandled 'error' event') code lifecycle?

就我个人而言,我通过向 PATH 添加一些缺少的环境变量来解决这个问题。

C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem

关于node.js - 事件.js :180 throw er;//Unhandled 'error' event ^,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56994373/

相关文章:

django - 如何解决“"django.core.exceptions.AppRegistryN

assembly - 如何在 GDB 控制台中设置 "info registers"中的变量 rip

json - 如何从 yang 模块生成 JSON 模式?

java - 在非 View 或非 ViewModel 类中观察 LiveData

angular - Ionic 4 - 在平台硬件后退按钮 android 上关闭或关闭模态

ios - 如果先前已加载某些网页,WKWebView 不会加载 .archive 文件

amazon-web-services - 为什么 Amazon Athena 会抛出 "Acces

python - 为什么 GridSearchCV 方法的精度低于标准方法?

wordpress - 如何优化WP_Query(包括CPT和ACF)

react-native - 位于 "node_modules/web3-eth-accounts/