如何从npm注册表中删除npm包? [英] How to delete an npm package from the npm registry?

查看:1041
本文介绍了如何从npm注册表中删除npm包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从npm注册表中删除或删除整个模块?

Is there a possible way to remove or delete the entire module from npm registry?

注意: npm -f unpublish 不允许您取消发布超过24小时的任何内容

Notice: npm -f unpublish doesn't allowed you to unpublish anything older than 24 hours

推荐答案

鉴于最近发生的事件,有一篇关于此事的帖子。你最好的选择是联系npm并希望你的软件包不会被其他项目所依赖。

There's a post about that, given the recent incident. Your best bet would be to contact npm and hope that your package isn't depended by other projects.


如果版本低于24小时,然后取消发布将失败,并留言联系support@npmjs.com。

If the version is older than 24 hours, then the unpublish will fail, with a message to contact support@npmjs.com.

如果您联系支持人员,他们将检查是否删除了您的版本包会破坏任何其他安装。如果是这样,我们不会删除它。您要么必须转移包的所有权,要么转到依赖包的所有者来更改其依赖关系。

If you contact support, they will check to see if removing that version of your package would break any other installs. If so, we will not remove it. You’ll either have to transfer ownership of the package or reach out to the owners of dependent packages to change their dependency.

http://blog.npmjs.org/post/141905368000/changes-to-npms-unpublish-policy

这篇关于如何从npm注册表中删除npm包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆