windows下安装npm提示 Couldn't install optional dependency

发布于 2022-09-01 21:14:25 字数 179 浏览 11 评论 0

安装了nodejs5.0,在windows命令行运行npm update,提示:
下安装npm提示:

$ npm update
npm WARN install Couldn't install optional dependency: Unsupported

这咋弄?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天冷不及心凉 2022-09-08 21:14:25

转自http://stackoverflow.com/questions/34469823/npm-warn-install-couldnt-install-optional-dependency-unsupported

The warning message is just a warning message and not an error. It does not affect the application.

It is a log message that an optional dependency could not be installed because it is not supported/needed on your current platform/cpu-arch. For example the package fsevents is often used as optional dependency but fails on any system that is not a Mac.

To show what package is throwing this message, run

$ npm install --verbose

This warning could also be triggered by packages having an engine set to something lower than what you are running. You can try

$ pm_config_engine_strict=false npm install

to get around this

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文