Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm-cli-login when called from the command line does not work with node 10.1.0 #25

Closed
LivesleyWA opened this issue Jun 20, 2018 · 3 comments

Comments

@LivesleyWA
Copy link

Works with 8.11.0

http 201 https://registry.npmjs.org/-/user/org.couchdb.user:xxxxxx
fs.js:140
  throw new ERR_INVALID_CALLBACK();
  ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:140:9)
    at Object.fs.writeFile (fs.js:1258:14)
    at Object.writeFile (/usr/local/lib/node_modules/npm-cli-login/lib/login.js:120:12)
    at /usr/local/lib/node_modules/npm-cli-login/lib/index.js:22:25
    at ReadFileContext.callback (/usr/local/lib/node_modules/npm-cli-login/lib/login.js:69:20)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:334:13)

[Container] 2018/06/20 01:16:30 Command did not exit successfully npm-cli-login -u $NPM_USERNAME -p $NPM_PASSWORD -e $NPM_USER_EMAIL exit status 1
@LivesleyWA LivesleyWA changed the title npm-cli-login does not work with node 10.1.0 npm-cli-login when called from the command line does not work with node 10.1.0 Jun 23, 2018
@wooderz
Copy link

wooderz commented Nov 8, 2018

This has been open since June.. any chance of a fix as it's stopping our build servers progressing now

@danthegoodman
Copy link

danthegoodman commented Nov 30, 2018

For others having this issue, I found npm-cli-adduser as an alternative command.
https://github.com/ksafavi/npm-cli-adduser

@czardoz
Copy link
Contributor

czardoz commented Jan 26, 2019

Fixed in v0.1.1 (it's published now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants