什么是"dev"? true在package-lock.json中用于吗? [英] What is `"dev" true` in package-lock.json for?

查看:1227
本文介绍了什么是"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.

这篇关于什么是"dev"? true在package-lock.json中用于吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆