博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
npm删除依赖项_npm依赖项和devDependencies
阅读量:2503 次
发布时间:2019-05-11

本文共 1129 字,大约阅读时间需要 3 分钟。

npm删除依赖项

When you install an npm package using npm install <package-name>, you are installing it as a dependency.

使用npm install <package-name>安装npm软件包时,将其作为依赖项进行安装。

The package is automatically listed in the , under the dependencies list (as of npm 5: before you had to manually specify --save).

该软件包会自动在的dependencies列表下列出(从npm 5开始:必须手动指定--save )。

When you add the -D flag, or --save-dev, you are installing it as a development dependency, which adds it to the devDependencies list.

当添加-D标志或--save-dev ,您会将其安装为开发依赖项,并将其添加到devDependencies列表中。

Development dependencies are intended as development-only packages, that are unneeded in production. For example testing packages, or .

开发依赖关系旨在作为仅开发包,在生产中不需要。 例如测试包, 或 。

When you go in production, if you type npm install and the folder contains a package.json file, they are installed, as npm assumes this is a development deploy.

在生产中,如果键入npm install且该文件夹包含package.json文件,则将安装它们,因为npm假定这是开发部署。

You need to set the --production flag (npm install --production) to avoid installing those development dependencies.

您需要设置--production标志( npm install --production )以避免安装那些开发依赖项。

翻译自:

npm删除依赖项

转载地址:http://weqgb.baihongyu.com/

你可能感兴趣的文章
npm 安装 sass=-=-=
查看>>
WINFORM中加入WPF控件并绑定数据源实现跨线程自动更新
查看>>
C#类对象的事件定义
查看>>
各类程序员学习路线图
查看>>
HDU 5510 Bazinga KMP
查看>>
关于select @@IDENTITY的初识
查看>>
ASP.NET MVC ajax提交 防止CSRF攻击
查看>>
关于CSS伪类选择器
查看>>
适用于带文字 和图片的垂直居中方法
查看>>
Part 2 - Fundamentals(4-10)
查看>>
使用Postmark测试后端存储性能
查看>>
NSTextView 文字链接的定制化
查看>>
第五天站立会议内容
查看>>
CentOs7安装rabbitmq
查看>>
(转))iOS App上架AppStore 会遇到的坑
查看>>
解决vmware与主机无法连通的问题
查看>>
做好产品
查看>>
项目管理经验
查看>>
笔记:Hadoop权威指南 第8章 MapReduce 的特性
查看>>
JMeter响应数据出现乱码的处理-三种解决方式
查看>>