Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm login fails from bitbucket pipeline #18096

Open
1 of 4 tasks
andyjp94 opened this issue Aug 8, 2017 · 0 comments
Open
1 of 4 tasks

npm login fails from bitbucket pipeline #18096

andyjp94 opened this issue Aug 8, 2017 · 0 comments

Comments

@andyjp94
Copy link

andyjp94 commented Aug 8, 2017

I'm opening this issue because I cannot use CI to login to a private npm registry

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

npm login to a private registry is failing from a bitbucket pipeline. The error message states that this is an error with npm itself.

How can the CLI team reproduce the problem?

The pipeline uses the node 8.2 docker container and attempts to login using this command

echo -e "cat<<EOF\n${NPM_USER}\n${NPM_PASSWORD}\n${NPM_EMAIL}" | npm login --registry "https://private.npm.registry.com"

I have run this command locally and it is fine. The error message is:

npm info it worked if it ends with ok
npm info using npm@5.3.0
npm info using node@v8.2.1
npm WARN Name must be lowercase 
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant