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.
页:
[1]