How to delete an npm package from the npm registry?

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

    If the published package/version is less than 72 hours old, unless you are the single owner of the module.

    npm unpublish  --force
    

    https://www.npmjs.com/policies/unpublish has details of the policy to unpublish packages

    The command and the policy to unpublish packages may have changed since the question was asked.

    npm force-unpublish package-name 'reason message'
    

    OR

    npm --force unpublish "package-name"
    

    did not work for me.

提交回复
热议问题