Open ravn opened 2 years ago
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.
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?
So you're logged in in the CLI with npm and it still doesn't work? See https://github.com/shannah/jdeploy/issues/33
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)
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
npm whoami
and it gives your username, then you're logged in).jdeploy publish
.Had the same problem, fixed using by doing:
jdeploy publish
I am new to jdeploy (my idea is to make Apache Maven more accessible by providing a jdeploy installer) and ran into this showstopper when trying to deploy my tiny proof-of-concept app.
Being new to this I do not know when OTP were introduced but it is clearly after the jdeploy documentation was written.
Would the simplest fix be to add a textbox to provide the OTP in and then pass it down using the
--otp=...
flag if provided?