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
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

Facing the same issue as Juan Medina faced. [Link](https://npm.community/t/npm-err-cannot-read-
property-startswith-of-null/5083)

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.

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