【问题标题】:403 Forbiden when publish module to npm403 将模块发布到 npm 时禁止
【发布时间】:2021-04-29 21:50:29
【问题描述】:

我试图发布一个模块,但总是出错。请帮忙检查 这是我的错误

npm notice 
npm notice ????  remove-null@1.0.0
npm notice === Tarball Contents === 
npm notice 435B index.js    
npm notice 178B package.json
npm notice === Tarball Details === 
npm notice name:          remove-null                             
npm notice version:       1.0.0                                   
npm notice package size:  467 B                                   
npm notice unpacked size: 613 B                                   
npm notice shasum:        be0e9f07c9f43c01959de7b5a623d9be6c358aba
npm notice integrity:     sha512-vXiTrxXk5H0sf[...]Cqo3wBwnLX1Lg==
npm notice total files:   2                                       
npm notice 
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/remove-null - 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.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dungva/.npm/_logs/2021-01-26T04_11_35_573Z-debug.log

【问题讨论】:

标签: node.js npm


【解决方案1】:
  1. 创建一个组织。 enter image description here
  2. 邀请会员,例如您自己。
  3. 登录会员邮箱,接受并验证以上邀请。
  4. npm 登录并发布您的模块。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-29
    • 2023-01-14
    • 2015-02-18
    • 1970-01-01
    • 2021-11-21
    • 1970-01-01
    • 2012-06-18
    • 2012-10-13
    相关资源
    最近更新 更多