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)
ask by littlezigy translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…