question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing version in package.json

See original GitHub issue

The package.json file is very bare bones here and doesn’t even have a version number.

version is a required field

Yarn refuses to install packages that do not have a version number specified and just throws a error Can't add "esptool-js": invalid package version undefined.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dumbasPLcommented, Sep 23, 2022

Want to open a PR and add version 0.1 to it?

done

Edit: On a side note, publishing this package to npmjs.com would also be welcome. This will drastically reduce download times(compared to using git) and will make version management easier

0reactions
dumbasPLcommented, Oct 24, 2022

bump

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm can't find package.json - Stack Overflow
I think, npm init will create your missing package.json file. It works for me for the same case.
Read more >
missing version in package.json throws error with yarn #113
When trying to install the dependencies of the headless front end (assets/headless) with yarn, there is an error thrown, ...
Read more >
package.json - npm Docs
json are the name and version fields as they will be required. The name and version together form an identifier that is assumed...
Read more >
Recover missing package.json with npm-collect
I recently took over a spare time project with multiple Git repos and branches where the package.json had been removed from all branches ......
Read more >
package.json - Yarn
The two most important fields in your package.json are name and version , without them your package won't be able to install. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found