Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

javascript - ERR! 403 when trying to publish a package to npm

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...