How to delete an npm package from the npm registry?

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

    From the docs: https://www.npmjs.com/policies/unpublish

    npm deprecate  "" to deprecate the entire package
    npm deprecate @ "" to deprecate a specific version
    If the entire package is deprecated, the package name will be dropped from our search results.
    
    Once deprecated, if you would also like for the package to be removed from your user profile,
    it can be transferred to our @npm account. This can be achieved by using the following from your command line:
    
    npm owner add npm 
    npm owner rm  
    

提交回复
热议问题