LinuxCommandLibrary

npm-unpublish

removes a package from registry

TLDR

Unpublish package version

$ npm unpublish [package]@[version]
copy
Unpublish entire package
$ npm unpublish [package] --force
copy
Dry run
$ npm unpublish [package]@[version] --dry-run
copy

SYNOPSIS

npm unpublish [package] [options]

DESCRIPTION

npm unpublish removes a package from registry. Use with extreme caution.
The command deletes published packages. Limited by npm policies.

PARAMETERS

PACKAGE

Package name and optional version.
--force
Force unpublish all versions.
--dry-run
Preview without unpublishing.
--help
Display help information.

CAVEATS

72-hour limit on new packages. Can break dependents. Use deprecate instead.

HISTORY

npm unpublish provides package removal with restrictions to prevent ecosystem breakage.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard