简体   繁体   English

npm WARN安装无法安装可选依赖项:不支持

[英]npm WARN install Couldn't install optional dependency: Unsupported

I received this warning message: 我收到了这条警告信息:

npm WARN install Couldn't install optional dependency: Unsupported npm WARN安装无法安装可选依赖项:不支持

when I ran the command: 当我运行命令时:

$ npm i adaro --save

What does this warning mean? 这个警告意味着什么? What is an optional dependency? 什么是可选的依赖? Is it serious? 这是认真的吗? How do I get rid of that warning? 我该如何摆脱这种警告?

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. 这是一条日志消息,无法安装可选依赖项 ,因为当前platform / cpu-arch不支持/不需要它。 For example the package fsevents is often used as optional dependency but fails on any system that is not a Mac. 例如,包fsevents通常用作可选依赖项,但在任何不是M​​ac的系统上都会失败。

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 绕过这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM