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
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
Facing the same issue as Juan Medina faced. [Link](https://npm.community/t/npm-err-cannot-read-
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.