new field false in Package.json

可紊 提交于 2019-12-06 23:33:28

问题


After upgrading to npm 5.* I have noticed a new field on the package.json which is really obscure and unintelligible.

What false: {} means?

{
  "name": "test",
  "devDependencies": {},
  "dependencies": {},

  // What that means? What's the goal?
  "false": {}
}

回答1:


This was bug #17141 in npm.

It was fixed in commit c3b586a on June 30th and that was released in version 5.1.0 on July 5th.

The fix for anyone experiencing this is to simply update npm.

You can update by running: npm install -g npm



来源:https://stackoverflow.com/questions/44564024/new-field-false-in-package-json

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!