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
5.6.0

node -v
v8.9.4

npm config get registry
https://registry.npmjs.org/

npm config get http-proxy
undefined

npm config get https-proxy
null

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.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.