Package.json中的新字段为false [英] new field false in Package.json

查看:75
本文介绍了Package.json中的新字段为false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到npm 5.*后,我已经注意到package.json上的一个新字段,该字段确实晦涩难懂.

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

false: {} 是什么意思?

What false: {} means?

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

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

推荐答案

这是错误#17141 在npm中.

该问题已在6月30日在commit c3b586a 中修复,并在<7月5日,a href ="https://github.com/npm/npm/releases/tag/v5.1.0" rel ="nofollow noreferrer">版本5.1.0 .

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

遇到这种情况的任何人的解决方法是仅更新npm.

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

您可以通过运行以下内容进行更新:npm install -g npm

You can update by running: npm install -g npm

这篇关于Package.json中的新字段为false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆