Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json malformed JSON? #38

Closed
coderigo opened this issue Jun 5, 2014 · 3 comments
Closed

package.json malformed JSON? #38

coderigo opened this issue Jun 5, 2014 · 3 comments

Comments

@coderigo
Copy link

coderigo commented Jun 5, 2014

I got an error while running yeoman's angular generator, yo angular, which in turn installs minimatch as a dependency. The exact error has to do with parsing minimatch's package.json file which it doesn't seem to think is valid JSON.

yo-angular-minimatch-error

I tried require-ing package.json in a separate node instance and it seemed to be OK, so not sure if this is really a bug in minimatch or npm's fault despite it professing it's not in the error message.

If anyone can reproduce on their end I can take a more detailed look, or if anyone knows why this may be happening we can can this issue.

@nishigori
Copy link

@coderigo I also had the same experience.
I think you maybe hope to install version 0.3.0, but npm cache specified 0.2.14.
In my case, exec $ npm cache clear or $ rm -rf ~/.npm/minimatch*, install successful.

@CombatCode
Copy link

yes, the value of "readme" key is broken, probably to long?
After edit /home/combat/.npm/minimatch/0.2.14/package/package.json and remove value of this key, everything goes well

@isaacs
Copy link
Owner

isaacs commented Jun 23, 2014

This is an npm bug that has been fixed, but can result in invalid data being in the cache folder.

npm i npm -g
npm cache clean

and the problem will be gone.

@isaacs isaacs closed this as completed Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants