np
np copied to clipboard
Stuck at the "Prerequisite check" stage
Stuck at the "Prerequisite check" stage when I try publish module to npm.
Steps to reproduce
- Enable 2fa in npm settings
- Create package
- Install np globaly
- run np in project dir
- Look at infinite spinner
Expected behavior
- Success sometime =)
Why is this happening
Npm ask prompt user about OTP
This operation requires a one-time password.
Enter OTP:
But np hides this message from the user
Environment
np - 6.5.0 Node.js - v14.9.0 npm -6.14.8 Git - 2.26.2 OS - 5.8.13-200.fc32.x86_64 (Fedora 32 (Workstation Edition) x86_64)
P.S. it would be great to have a --verbose flag
@Akiyamka , that's working as intended.
All you need to do at this stage is enter the OTP generated by your Authenticator app. You can start typing soon as you see this prompt.
Or did you mean this message itself is not coming:
This operation requires a one-time password. Enter OTP:
Are you getting a 503 like this #504 here?
Or did you mean this message itself is not coming
Yep, as I say "np hides this message from the user", user can see only "Prerequisite check" in progress.
Are you getting a 503 like this issue here?
No
np does not offer to enter anything, it just spins the spinner endlessly as it waits for the process to complete -> process not complete because it's wait user input -> user cannot enter anything because np does not display this input -> endless spiner
@Akiyamka Are you sure it is the OTP. I was having this issue today... I forgot to run ssh-add.
Closing due to age.
As for every np issue, it's worth verifying that your local npm version && npm publish is working first.