sindresorhus / np

A better `npm publish`
MIT License
7.55k stars 298 forks source link

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

Open brunolnetto opened 1 year ago

brunolnetto commented 1 year ago

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 commented 1 year ago

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"