How to delete an npm package from the npm registry?

前端 未结 5 1539
滥情空心
滥情空心 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:17

    TL;DR:

    npm force-unpublish package-name 'reason message'
    

    Explanation:

    1. npm deprecate package-name 'reason message'
    2. npm owner add npm package-name
    3. npm owner rm $(npm whoami) package-name

    https://www.npmjs.com/package/force-unpublish

提交回复
热议问题