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

Details

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: '7.5.288.22-node.16',
  zlib: '1.2.11'
}

$ node -p process.platform

darwin

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.