Coder Social home page Coder Social logo

Comments (6)

shannah avatar shannah commented on June 23, 2024

It does try to deal with the one-time password but it is flakey. It has been reported that updating NodeJS to the latest fixes this issue. An alternative workaround for now, is to first login using the CLI. (i.e. npm login), then do your publish.

from jdeploy.

ravn avatar ravn commented on June 23, 2024

I had installed the LTS version of node.js, which had 8.11 of npm. Upgrading manually to 8.13.2 with packages, (which in the process upgraded jdeploy to 3.2.0) and logging in again did not change the error message.

This is under MacOS 12.4 x64.

Suggestions?

from jdeploy.

shannah avatar shannah commented on June 23, 2024

So you're logged in in the CLI with npm and it still doesn't work? See #33

from jdeploy.

ravn avatar ravn commented on June 23, 2024

Yes. I have enabled 2FA for NPM with a suitable authenticator, which might be a mistake given this.

What is the correct place to add the --otp=xxxx snippet in the JDeploy GUI? (Better to ask than guess these things)

from jdeploy.

shannah avatar shannah commented on June 23, 2024

The jDeploy GUI will try to identify when the CLI prompts for it, and it will give you a dialog box to enter the OTP. But this is currently version-dependent as it uses heuristics to identify this.

If this isn't working, then you should

  1. Login using the npm command line. (If you can type npm whoami and it gives your username, then you're logged in).
  2. Publish using either the jDeploy GUI or the jDeploy CLI. From the cli, it is just jdeploy publish.

from jdeploy.

EtienneLamoureux avatar EtienneLamoureux commented on June 23, 2024

Had the same problem, fixed using by doing:

  1. Login into npmjs.com
  2. Go to the account setting, the "Manage Two-Factor Authentication"
  3. In the "Additional Options" section, uncheck "Require two-factor authentication for write actions"
  4. Click the "Update Preferences" button
  5. Run jdeploy publish

from jdeploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.