ymedlop/npm-cache-resource

Can't authorize when using base64 encode user:password

Closed this issue · 3 comments

Can't authorize when using base64 encode user:password format with default npm registry https://registry.npmjs.org. It fails when it tries to install the first module "q" which is public.
I removed actual token when logging bug

  • name: npm-repo-cache
    type: npm-cache # as defined above
    source:
    <<: *repo # the source is the same as the corresponding git resource ...
    paths: # ... except that it's only interested in files listing dependencies
    - package.json
    token: XXXXXXXXXMYTOKEN

Output:

Set token in our .npmrc file: XXXXXXXXXMYTOKEN
always-auth=true
_auth=XXXXXXXXXMYTOKEN
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--quiet"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code E401

npm ERR! Registry returned 401 for GET on https://registry.npmjs.org/q
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/git-resource-destination.ipkaFA/npm-debug.log

Easy solution might be to add https://github.com/postmanlabs/npm-cli-login to the script, but just a suggestion :)

Yeah you are right

I updated the repo with your suggestion... I'll hope to resolve the problem with this update

Closing due to no response.