I'm installing @angular2-material/core ( or any other module ) with npm wont let me install any of the modules.
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@angular2-material/core"
npm ERR! node v5.11.1
npm ERR! npm v3.8.6
npm ERR! must have a URL that starts with http: or https:
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm set registry https://registry.npmjs.org/ // https
npm set registry http://registry.npmjs.org/ // http
This is mainly because you've tried multiple registries and now npm is kind of confused , You need to open your .npmrc and remove unnecessary registry paths.
To find your .npmrc :
npm config ls -l | grep config
You will see something like :
Then open that file with your editor and edit and remove extra unnecessary registries .