pnpm unpublish

게시된 패키지 버전을 레지스트리에서 제거합니다.

pnpm unpublish <pkg>[@<version>] [--force]

경고

게시 취소는 일반적으로 권장되지 않습니다. 대부분의 레지스트리(공개 npm 레지스트리 포함)는 패키지를 게시 취소할 수 있는 시기와 방법을 제한합니다. 가능하면 pnpm deprecate를 사용하세요.

예시#

특정 버전 게시 취소:

pnpm unpublish foo@1.0.0

버전 범위를 semver 지정자로 게시 취소:

pnpm unpublish "foo@<2"

If a removed version held the latest tag, pnpm moves the tag to the highest remaining stable version. If only prereleases remain, it selects the highest prerelease.

전체 패키지(모든 버전)를 게시 취소합니다. --force가 필요합니다:

pnpm unpublish foo --force

A package name is required. Without one, the command fails with ERR_PNPM_UNPUBLISH_REQUIRED.

옵션#

--force#

특정 버전이나 범위가 아닌 전체 패키지(모든 버전)를 제거할 때 필요합니다. A range that matches every published version also counts as removing the entire package. Without --force, the command fails with ERR_PNPM_UNPUBLISH_CONFIRM.

If the registry does not allow removing the entire package, the command fails with ERR_PNPM_UNPUBLISH_FORBIDDEN. Deprecate the package instead.

--registry <url>#

The registry to remove the package from. 기본값은 패키지에 구성된 레지스트리입니다.

--otp <code>#

When the registry requires two-factor authentication, supply the one-time password with this option.