"Couldn't read dependencies" error with npm

I had an "Invalid Name"

I switched from "name": "Some Name",... to "name": "Some-Name",...

Guess name needs to be a sluggy string.


Try to add this:

"private": true,

it worked for me.

EDIT (for people asking why):

The Oficial documentation states the following:


If you set "private": true in your package.json, then npm will refuse to publish it. This is a way to prevent accidental publication of private repositories. If you would like to ensure that a given package is only ever published to a specific registry (for example, an internal registry), then use the publishConfig hash described below to override the registry config param at publish-time.


The error messages you are getting may be related to violating this "rule" in a way (mine was).

  • Either you are marking a unpublished package (like your own app) as "private": false.
  • Or you are neglecting to include any value at all.