ERR! 403 when trying to publish a package to npm

无人久伴 提交于 2021-01-24 12:09:23

问题


I'm trying to publish a package to npm. You can see the repository here: https://github.com/biowaffeln/mdx-state

I logged in to npm with npm login, then I ran npm publish and got the following error message:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/mdx-state - Forbidden
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.

I have no idea what that's supposed to mean. What am I missing?


回答1:


Okay, I found the problem. Apparently, I didn't verify my email address, so that's why I didn't have the permission to upload packages. Talk about an unhelpful error message!



来源:https://stackoverflow.com/questions/64705901/err-403-when-trying-to-publish-a-package-to-npm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!