Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

new field false in 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": {}
}
like image 499
Hitmands Avatar asked Jun 15 '17 09:06

Hitmands


1 Answers

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

like image 68
Seth Holladay Avatar answered Sep 19 '22 15:09

Seth Holladay