<Reach Me Here />

Unpublishing your package on npm

Updated on 2021.02.28

If your package is published on npm, for some reason, you want to unpublish a single version or the entire package, you can follow the steps below:

Unpublishing a single version of a package

To unpublish a single version of a package, run the following command, replacing with the name of your package, and with your version number:

npm unpublish <package_name>@<specific_version_name>

Unpublishing the entire package

To unpublish an entire package, run the following command, replacing with the name of your package:

npm unpublish <package_name> -f

If you have two-factor authentication enabled for writes, you will need to add a one-time password to the unpublish command, –otp=123456 (where 123456 is the code from your authenticator app, Google Authenticator is for example).

  1. Reference: unpublishing-packages-from-the-registry
  2. use Google Translate to correct some of my english grammer error