node.js - Npm i installing dev dependency using omit=dev flag - Stack Overflow

I am trying npm install on a helloworld node js application with the environment set to production. It

I am trying npm install on a helloworld node js application with the environment set to production. It is installing dev dependency even if the environment is set to production. Is there anything I am missing out on?

"devDependencies": {
  "c8xxxxx": "^10.0.0",
   "gaxios": "^6.0.0",
   "mocha": "^10.0.0",
   "sinon": "^18.0.0",
   "supertest": "^7.0.0",
   "wait-port": "^1.0.4",
   "abcd": "^1.0.0"
}

This is what my devdependencies in package.json looks like and just to check I have added c8xxxxx as an invalid dependency. And command I am using is npm install --omit=dev

I expected that dev dependencies shouldn't be installed

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742362044a4429580.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信