Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何取消发布/删除已发布的包到 Sinopia(本地 NPM 存储库)?
假设我发布了一个名为 @test/test-package 的包。如何从本地存储库中取消发布它?
试试这个命令。
npm unpublish @test/test-package
这将取消发布此软件包的最新版本。如果要删除特定版本,也请使用版本。
npm unpublish @test/test-package@v1.0.0
这将删除此软件包的 1.0.0 版本