禁止npm生成package-lock.json

针对本地项目:

echo 'package-lock=false' >> .npmrc

npm全局设置

npm config set package-lock false

参考资料

https://codeburst.io/disabling-package-lock-json-6be662f5b97d