npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm ERR! Cannot read property 'startsWith' of null

I have this error when I try to instal web-push:

npm i web-push
npm ERR! Cannot read property 'startsWith' of null

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\S00293\AppData\Roaming\npm-cache\_logs\2019-02-01T18_35_10_523Z-debug.log

Other information:

npm -v

node -v

npm config get registry

npm config get http-proxy

npm config get https-proxy

Can anybody help me?

Can you post the debug log? Also, the version of npm you’re using is a bit outdated, so whatever’s happening it could be fixed in newer versions already.

Thanks a lot larsgw… I don’t know why but now all works fine again.
I really don’t know because the error was this one, but now I can’t reproduce it.