今天,我爱模板网注册了npm,想发布一个包测试下,就按照网上的方法写了一个测试包,然后发布,发现发布失败,提示:
npm ERR! code E403
npm ERR! 403 Forbidden - PUT https://registry.npmjs.org/npmdemo - You do not have permission to publish "npmdemo". Are you logged in as the correct user?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-07-10T03_09_35_934Z-debug.log
没有权限,我想可能是邮箱没验证,就登录邮箱,发现有几封npm Inc的邮件,其中有一封名为《Verify your npm email address》,验证您的邮件地址,点进去,里面有句话是“To verify your email so that you can publish packages”,验证邮件地址才能发布包,明白了,验证下,然后再发布,发现成功了!
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!