[英]Warning message everytime I use an npm command
Fresh node install, new directory and everything, deleted all the previous files and this error is still occuring.全新节点安装,新目录和所有内容,删除了所有以前的文件,但仍然出现此错误。
Steps to reproduce:重现步骤:
run node -v
运行
node -v
npm WARN config optional Use
--omit=optional
to exclude optional dependencies, ornpm WARN config optional 使用
--omit=optional
排除可选依赖项,或者
npm WARN config--include=optional
to include them.npm WARN config --include
--include=optional
以包含它们。
npm WARN confignpm 警告配置
npm WARN config Default value does install optional deps unless otherwise omitted.npm WARN config 除非另有省略,否则默认值会安装可选的 deps。
npm WARN config optional Use--omit=optional
to exclude optional dependencies, ornpm WARN config optional 使用
--omit=optional
排除可选依赖项,或者
npm WARN config--include=optional
to include them.npm WARN config --include
--include=optional
以包含它们。
npm WARN confignpm 警告配置
npm WARN config Default value does install optional deps unless otherwise omitted.npm WARN config 除非另有省略,否则默认值会安装可选的 deps。
No ideia why this is happening, it's not affecting anything other than just having a WARN message everytime I run a command.不知道为什么会这样,除了每次运行命令时都会收到 WARN 消息外,它不会影响任何其他内容。
I've fixed it by deleting both user and global configs for npm. It was the only thing that the full instalation didn't relete (I guess) so it worked.我已经通过删除 npm 的用户和全局配置来修复它。这是唯一没有完全安装的东西(我猜)所以它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.