我正在尝试将模块推送到npm,但是在运行npm publish
时它返回了以下错误,我尝试了建议的每个示例和解决方案,但未能解决。
我也尝试过-> Getting 404 when attempting to publish new package to NPM,但没有解决方案。我已经向npm交付了几个模块,但是从未遇到过这个问题。
npm ERR! publish Failed PUT 404
npm ERR! code E404
npm ERR! 404 User not found : <package-name>
npm ERR! 404
npm ERR! 404 '<package-name>' 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:
谢谢。
答案 0 :(得分:0)
通过将我的npm
版本更新为5.6.0
版本解决了此问题。