您的位置:首页 > 产品设计 > 产品经理

npm install production 参数 devDependencies

2016-05-23 17:21 375 查看
 npm install --production 

添加了production  参数后将仅仅  安装  package.json 中dependencies 里面的包,不会安装devDependencies 里面的

参考文档:
https://docs.npmjs.com/cli/install
With the 
--production
 flag
(or when the 
NODE_ENV
 environment
variable is set to 
production
),
npm will not install modules listed in 
devDependencies
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: