首页 > 解决方案 > 运行 npm unpublish 时出错 - npm unpublish 错误

问题描述

运行 npm unpublish @mioun/letter-aneh -f 时出现错误

mioun@zde ~/miouns-7$ npm unpublish @mioun/letter-aneh -f
npm WARN using --force I sure hope you know what you are doing.
npm ERR! code E404
npm ERR! 404 Not Found - DELETE https://registry.npmjs.org/@mioun%2fletter-aneh/-rev/3-32e8cf92e0c9077ea473d6230a26359f - Not found
npm ERR! 404
npm ERR! 404  '@mioun/letter-aneh@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mioun/.npm/_logs/2020-08-22T18_12_20_129Z-debug.log

标签: node.jsnpm

解决方案


这是一个奇怪的错误。实际问题是身份验证问题。我不得不

> npm logout

然后

> npm login

这为我解决了。


推荐阅读