npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Unable to `npm unpublish` a scoped package

What I Wanted to Do

I wanted to unpublish a scoped package.

What Happened Instead

I got an error.

Reproduction Steps

npm publish @scope/package
npm dist-tag add @scope/package@prevVersion latest
npm unpublish @scope/package


I have published a new version of a scoped package by a mistake and I decided to remove it ASAP. Unfortunately, I didn’t work, so I ended up deprecating it for the time being.

Platform Info

$ npm --versions

  '@react-native-community/cli-tools': '2.8.3',
  npm: '6.10.2',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '35.1',
  http_parser: '2.8.0',
  icu: '64.2',
  llhttp: '1.1.4',
  modules: '72',
  napi: '4',
  nghttp2: '1.39.2',
  node: '12.8.1',
  openssl: '1.1.1c',
  tz: '2019a',
  unicode: '12.1',
  uv: '1.30.1',
  v8: '',
  zlib: '1.2.11'

$ node -p process.platform