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 install http-server
npm i http-server
Link for npm http-server

I was trying to turn off proxy for npm. Following these steps

Other Information
npm -v

node -v

npm config get registry

npm config get http-proxy

npm config get https-proxy

Facing the same issue as Juan Medina faced. [Link](

2019-07-15T15_28_52_060Z-debug.log (3.5 KB)

It’s worth trying the same advice that Juan got.

Update to latest and see if it’s still a problem.