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

Display more information on failure #468

Closed
szmarczak opened this issue Nov 2, 2019 · 2 comments
Closed

Display more information on failure #468

szmarczak opened this issue Nov 2, 2019 · 2 comments

Comments

@szmarczak
Copy link

✖ Error publishing package:
Command failed with exit code 1 (EPERM): npm publish --tag next --otp 669300

The project was rolled back to its previous state.

Running that command gives:

npm ERR! code E402
npm ERR! 402 Payment Required - PUT https://registry.npmjs.org/@szmarczak%2fgot-testing - You must sign up for private packages

Expected output

✖ Error publishing package:
Command failed with exit code 1 (EPERM): npm publish --tag next --otp 669300

npm ERR! code E402
npm ERR! 402 Payment Required - PUT https://registry.npmjs.org/@szmarczak%2fgot-testing - You must sign up for private packages

The project was rolled back to its previous state.
@canac
Copy link

canac commented Apr 25, 2022

I ran into this issue as well. It looks like the problem is that the ui function isn't returning the publishScoped answer that it prompts the user for. Because of that npm publish isn't called with the --access public flag, and it fails.

@tommy-mitchell
Copy link
Collaborator

@sindresorhus this was fixed in #677.

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

No branches or pull requests

5 participants