How to delete an npm package from the npm registry?

前端 未结 5 1532
滥情空心
滥情空心 2020-12-13 17:27

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

Notice: npm -f unpublish doesn\'t allowed you to unpublish anything ol

5条回答
  •  一整个雨季
    2020-12-13 18:04

    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.

    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

提交回复
热议问题