new field false in Package.json

时间:2017-06-15 09:35:40

标签: node.js npm package.json

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 个答案:

答案 0 :(得分:3)

这是npm中的错误#17141

它于6月30日在提交c3b586a中得到修复,并于7月5日在version 5.1.0中发布。

任何遇到这种情况的人的修复就是简单地更新npm。

您可以通过运行:npm install -g npm

进行更新