I'm trying to run an npm install of one of our feeds, but keep getting blocked because of authentication issues
$ npm install --registry=https://email@example.com
and I get an output of
npm ERR! registry error parsing json
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--registry=https://firstname.lastname@example.org"
npm ERR! node v4.2.1
npm ERR! npm v3.7.3
npm ERR! Unexpected token <
npm ERR! <!DOCTYPE html>
npm ERR! <html>
npm ERR! <head>
npm ERR! <title>Log In</title>
npm ERR! <link type="text/css" rel="stylesheet" href="/resources/InedoLibWeb/styles/common.css?4188.8.131.52" />
................ etc etc.........
<span class="info-block info" style="text-align: left">The page you are attempting to access requires authentication and you are currently browsing as the anonymous user.</span>..........
I've tried playing with the ~/.npmrc file. So far I have:
but when I try to add the username, password, email, on the commandline using npm adduser I get the following error:
npm ERR! <html><head><title>Object moved</title></head><body>
npm ERR!Object moved to <a href="/log-in?ReturnUrl=%2Fnpm-feeds%2Fprivate-npm%2F-%2Fuser%2Forg.couchdb.user%3Aci-aem-user">here</a>.
npm ERR! </body></html>
So it seems that I can't manage send through the credentials when I run the command
Any help would be greatly appreciated