-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有的依赖包从本地Publish 403是什么原因? #722
Comments
我们已经看到你的反馈,如果是功能缺陷,可以提供一下重现该问题的方式;如果是新功能需求,我们会尽快加入讨论。同时我们非常期待你可以加入我们的贡献者行列,让项目可以长期可持续发展。 |
[forbidden] dongmi not authorized to modify webpack-virtual-modules, please contact maintainers: vicvlas 这个账户没有这个包的发包权限 |
如果是管理员的话可以先执行 |
@elrrrrrrr 管理员是不是就是config.js admin块设置的账号,按照提示加了,还是报这个错。 |
webpack-virtual-modules 是一个公网包? 看看 regisrtry 所有权是否已经迁移到当前 registry 可以访问 ${registryHost}/${pkgName} 返回的 "_source_registry_name" 是否为 "self" 如果不是的话还需要管理员先进行一下写操作才行 |
请教一下大佬 @elrrrrrrr |
@elrrrrrrr 通过修改源码解决了。 |
内网搭建了一个cnpm源,没有外网,从本地推送依赖有的可以正常推送,有的就报错如下
npm notice Publishing to http://npm.xxx.cn/ with tag latest and default access
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT http://npm.xxx.cn/webpack-virtual-modules - [forbidden] dongmi not authorized to modify webpack-virtual-modules, please contact maintainers: vicvlas
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.
npm ERR! A complete log of this run can be found in: C:\Users\admin\AppData\Local\npm-cache_logs\2024-10-31T08_01_16_498Z-debug-0.log
The text was updated successfully, but these errors were encountered: