发布npm包时出现的各种问题



当遵循指南时,我尝试与npm publish发布,然后我得到错误

npm notice
npm notice 📦  <NAME>@1.0.0
npm notice === Tarball Contents ===
npm notice 0B   index.d.ts
npm notice 300B package.json
npm notice === Tarball Details ===
npm notice name:          <NAME>
npm notice version:       1.0.0
npm notice filename:      <NAME>-1.0.0.tgz
npm notice package size:  326 B
npm notice unpacked size: 300 B
npm notice shasum:        f736904e1898979ee092c84953b96a5b4d79bf48
npm notice integrity:     sha512-r+lqbZVF+iQUY[...]+OPxw0CAP5LcA==
npm notice total files:   2
npm notice
npm ERR! code E402
npm ERR! 402 Payment Required - PUT https://registry.npmjs.org/<NAME> - You must sign up for private packages

和遵循文章和做npm publish --access public我得到错误

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/<NAME> - 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, or
npm ERR! 403 on a server you do not have access to.

显示错误I have verified my email

npm version:7.6.0我已经确保我登录到正确的用户名与npm loginnpm whoami

确保包的作用域是正确的。我遇到这个问题是因为我在公司名称的末尾/package-name之前有。com。

的例子:"@ideadesignmedia.com/package"应该是"@ideadesignmedia/package">

相关内容

  • 没有找到相关文章

最新更新