简体   繁体   English

每次运行 npm install 时,都会收到无关的警告/错误

[英]Everytime I run npm install, I get the extraneous warning/error

Every single package I install using npm i is extraneous and is not added to package.json.我使用 npm i 安装的每个包都是无关紧要的,不会添加到 package.json 中。 With npm i --save, it will get added but I wonder why this is.使用 npm i --save,它会被添加,但我想知道为什么会这样。 I've tested in different directories to make sure the problem is not the parent folder having a node_modules folder.我已经在不同的目录中进行了测试,以确保问题不是具有 node_modules 文件夹的父文件夹。 I'm using node 8.10.0 and npm 3.5.2我正在使用节点 8.10.0 和 npm 3.5.2

在此处输入图片说明

So I updated npm using npm, I deleted the local repo and cloned it again, I created test node projects in different directories but the problem persisted.所以我使用 npm 更新了 npm,我删除了本地 repo 并再次克隆它,我在不同的目录中创建了测试节点项目,但问题仍然存在。

I'm not sure what stopped it because it resolved on its own after a while, but before that, I was running npm i with --save.我不确定是什么阻止了它,因为它在一段时间后自行解决,但在此之前,我使用 --save 运行 npm i。

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

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