firemail
标题: nodejs相关运行参数 [打印本页]
作者: java 时间: 2018-1-2 09:37
标题: nodejs相关运行参数
npm install production 参数 devDependencies 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.
欢迎光临 firemail (http://firemail.wang:8088/) |
Powered by Discuz! X3 |