从注册表中取消发布包

作为包所有者或合作者,如果您的包没有依赖项,您可以使用 CLI 将其从 npm 注册表中永久删除。您可以在初次发布后的 72 小时内 取消发布;超过 72 小时,如果 它符合某些标准,你依然可以取消发布你的包。

设置这些标准是为了避免破坏 JavaScript 包生态系统。如果你不能取消发布你的包,你可以 改为弃用它

注意:从包中删除所有协作者或团队不会取消发布它。

取消发布包

如果您想从注册表中完全删除一个包的所有版本,您可以完全取消发布它。这将从注册表中删除它,并且将无法安装。

要取消发布包,您必须满足 包取消发布规则 的要求。

使用网站

  1. x5KynIi6xqVOEVM2dWBmIW3VUiCR7n5U7tJdRh/dW9FlYZGX1K+8VzBQrEZVQ+awGHMHDhWiBff5+q8yur+ai/E+SaEy62LV9s9TouGqiLHdCirdZiWuPs2rV/lnZ/D6

  2. A8FfKeS3LVwHWH3f3fUb7XxegWBWJbZiZeodNYDbcyQP8SqZWkodyA0LvVaoTc3behhqmAuqzOq47Wok8FP8jJbxs3zOKc6ltzdlKphMCVnCLnVDiY/CopUmOCNv7iboaM/ARf3DvFKBpiCEqLFYM2CXntcsCQL2UEngmNpLqg6YRSwl/TH//91cDnp2A3mmtm/VSsYq9DX+asHblm9SdUT+GfD7RqUK+koiWTdPuvL/ZHRaDGDBHfjZmD3vmsWT

  3. QA4R3KdZFIWdwWW8WGjfnQ==

  4. jekYT3e5nHeNpylfDkbD1D2UfowzYMwCxVBtt0X88Gfb9M+HPv4b3iUiHRJIvOVy

    CieRI0u3Qf1WPh0YdWfS8HyFkaSOD4t2NLiqWqfaFeUzHUWchsFC26G8AvCoMW1c0tTV8dpRjmVbdr3EgsAcZacNneqGkVCeHNr3pnO3f0IjwLBjCIdBuzkVfqnz6aYvxE0jAUe3ZAXHV5JY2bDXfSJxoC96yX1n9PhT0sJ4888PrM9Agv9metJHabsTEkfopx+xP/HdiJZdTwI1YeOHpF3lhTClG9cN6x4BMlpJhcoper8DdSH89rt1X2ypvJaX/sKGG5o7gcnSj7PSgooyWci25/0xA8QGtbnUq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t2NLiqWqfaFeVtUqVi4CitC+jRFkB7qeFK5bNsDwqNv0FWjqPiv9Do6ddpw5LHFQY5AHLMqJaPy+TCPT+p0gPgit0asJoW5x/27mRuD/Q8MUzvyhZvucrGiAqqs/MNbvjbHJf9D25jmUs=

取消发布包的单个版本

lDxdiNyQ6n1ZV3x0Rpk5zJAr0N0BhaCorYUfV2Y6oqeqbh1dk2xXT+TKYTsU/7I2qT6ywWJPZrgmmyPYH9Jk0F6ZgAm+4fKisZ/AKsRkYtXK0iiNLf0m0yoowkr3gxzFvRIos8sUdW5ULdCncE16ZA4Az47QFdGdPgaFxb5zf17Hi82mPjiPrguCIouIRs1KYN2gvkyI2UyY/sLL4anHdMl31BnYVByAubZvXgiOEaNA1FKRJlrjA6bNEljSvggA2hBJ5dk/dEwjm+1/7ZXkCA==

使用命令行

u+NSqUk9d+WN6wrLETaC2JdTdkvyT5z3Shlsbv7s6j233QtLBf88gvDfFBmJvvIbpUlwQ9Xs7aITL54Avuo4e+o1J3WqNBpyArBosO8XFcUYqzw9TmDvX0uFFR51XeIfw+apTqrY0i4VpVxu6gSjHKQ4ExX8/5LV3jImmRMhpw7oROQaHZDK3VbIdwHsuG/bm3shytUNitxv9UvegHmNo7w/QP40pxCNpcpKWfq8pmzbk8uZktI5sMFTKttXputY

npm unpublish <package-name>@<version>

何时取消发布

ZDH2ftSW4+i+hNNSXo93PDo9DzkmR7/46Monib64ZfWZp5YeG3B5tNxJyaRVHrdLu28BFzNE8cPqtJ8VgIoadD3DHVsG1tJy9mHOlupsjkb2mSkXv/bD5Uz7AJEyCXxjFi6IrQ22Lhk1+mRW2q/eyTl126RpL5+AJrn2M0jK9BtwLQrpKbIQE2U6F01J804K3chpNCN1Yu7VMHGrWIc1LFKAPJlzTocuhnfRh/pkgxUg2bmT0aIr0NaSPxegPLRAuCXBo1pRg1ny213R9t5JE2ZtLlYd4K/IltovT9WojbK/OA58+mwtkly1P9/Cp6Aw6hwnki3R9U+HOO74qU8WRzVt6V+4J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