Format of package.json is incorrect for dependencies and devDependencies
See original GitHub issueHello, I’m experiencing this error https://github.com/electron-userland/electron-builder/issues/3050 attempting to build Babylon into Electron. This is because the dependencies
and devDependencies
are an empty Array []
. This should be {}
(or removed). Here’s the snippet from the latest release:
{
// ...
"dependencies": [],
"devDependencies": [],
// ...
}
If someone could fix this in the packaging, that would be awesome.
Thanks for a great library.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
npm install won't install devDependencies - node.js
I don't understand why npm install doesn't install devDependencies too, but installs only dependencies. What could be the reason? How can I fix ......
Read more >Adding dependencies to a package.json file
To add dependencies and devDependencies to a package.json file from the command line, you can install them in the root directory of your...
Read more >npm install not installing dependencies listed in package. ...
I'm opening this issue because: npm is crashing. npm is producing an incorrect install. npm is doing something I don't understand.
Read more >Installing Dev Dependencies with npm: Beginners' Guide
NPM installs devDependencies within the package.json file. The 'npm install' command should add all the dependencies and devDependencies ...
Read more >Common npm mistakes
With npm 2, if your package.json listed a peer dependency, when someone installed your package, that dependency was also automatically installed ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll check with seb and I’ll build a new npm package 😃
Maybe it’s coming from here: https://github.com/BabylonJS/Babylon.js/blob/master/Tools/Config/config.json#L141-L142