np icon indicating copy to clipboard operation
np copied to clipboard

Stuck at the "Prerequisite check" stage

Open Akiyamka opened this issue 5 years ago • 3 comments
trafficstars

Stuck at the "Prerequisite check" stage when I try publish module to npm.

Steps to reproduce

  1. Enable 2fa in npm settings
  2. Create package
  3. Install np globaly
  4. run np in project dir
  5. Look at infinite spinner

Expected behavior

  1. 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 avatar Oct 09 '20 13:10 Akiyamka

@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?

dopecodez avatar Oct 10 '20 03:10 dopecodez

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 avatar Oct 10 '20 07:10 Akiyamka

@Akiyamka Are you sure it is the OTP. I was having this issue today... I forgot to run ssh-add.

Hypercubed avatar Feb 27 '22 20:02 Hypercubed

Closing due to age.

As for every np issue, it's worth verifying that your local npm version && npm publish is working first.

fregante avatar Feb 03 '23 11:02 fregante