Np: Script is stuck at "publishing package usage npm" (keeps loading)

Created on 20 Nov 2019  Â·  5Comments  Â·  Source: sindresorhus/np

Description

The script is stuck trying to publish the package to NPM. The package is published to NPM but the step still has the loader and wont move to the next step (Pushing Tags).

Package is public
bitbucket repo is private

Steps to reproduce

  1. Run
    np --no-tests

Expected behaviour

After successfully execute move to next step.

Environment

np - 5.1.3
Node.js -v12.13.0
npm - 6.12.0
Git - 2.21.0
OS - 10.14.6

Most helpful comment

Fixed. Appears my mistake was setting np on the npm publish script:

// package.json
{
  "scripts": {
    "release": "np", // good
    "publish": "np" // bad
  }
}

All 5 comments

Same here. Public package and public repo on github

Happening here as well.

np publishes to npm but hangs on "â ¦ Publishing package using npm".

Kinda in the dark as to where the error lies.

Environment

np - 5.2.1
Node.js - v10.16.0
npm - 6.13.4
Git - 2.21.0 (Apple Git-122.2)
OS - macOS Mojave 10.14.6

Fixed. Appears my mistake was setting np on the npm publish script:

// package.json
{
  "scripts": {
    "release": "np", // good
    "publish": "np" // bad
  }
}

Confirmed solution from @fa-repo works.

Perhaps this should be reopened. Good that there is a fix, but I think this will happen to a lot of people. Especially since the script hangs in this particular case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janpio picture janpio  Â·  6Comments

natesilva picture natesilva  Â·  5Comments

sindresorhus picture sindresorhus  Â·  4Comments

koppor picture koppor  Â·  5Comments

xxczaki picture xxczaki  Â·  6Comments