什么是"dev"? true在package-lock.json中用于吗?

什么是

问题描述:

"dev" truepackage-lock.json文件中是什么意思?

What does "dev" true means in package-lock.json file?

对于我来说,当我执行npm操作时,它会自动更新.

In my case it is automatically updated when I perform npm operations.

我们如何删除它?

来自 https://docs.npmjs.com/files/package-lock.json

如果为true,则此依赖项仅是顶层模块的开发依赖项,或者是一个传递性依赖项.对于既是顶层的开发依赖关系又是顶层的非开发依赖关系的传递依赖关系的依赖关系,都是错误的.

If true then this dependency is either a development dependency ONLY of the top level module or a transitive dependency of one. This is false for dependencies that are both a development dependency of the top level and a transitive dependency of a non-development dependency of the top level.