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

Publish fail using "np --any-branch" #664

Open
brunolnetto opened this issue Sep 26, 2022 · 1 comment
Open

Publish fail using "np --any-branch" #664

brunolnetto opened this issue Sep 26, 2022 · 1 comment

Comments

@brunolnetto
Copy link

Description

To publish using the command npm run release leads to log below:

Prerequisite check
✖ Ping npm registry

┌───────────────────────────────────────────────────┐
│ np update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /root/.config │
└───────────────────────────────────────────────────┘

Environment

np - "^7.6.2"
Node.js - ">=16.0.0"
npm - ">=6.9.0"
OS - Ubuntu 20.04.5 LTS

@fregante
Copy link
Collaborator

fregante commented Feb 3, 2023

The first part seems to be because you're offline.

The box is due to https://github.com/yeoman/update-notifier

The combination of the two issues suggests that either your cli is misconfigured or too "tightened"

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

2 participants