【发布时间】:2021-12-07 06:04:16
【问题描述】:
从文档中并不清楚 Verdaccio 代理是什么。
如果我为 @acme/foo 设置了代理,并且有人以 Verdaccio 为目标尝试发布 @acme/foo,我该如何配置该行为以及默认值是什么?有三种明显的可能性,但文档中没有涵盖它们,
- 发布被拒绝
- 发布已代理。
- 发布在本地完成,进一步的请求不会被代理。
我更喜欢第三个选项,但是当我尝试发布到代理的包时,我在 npm 中得到了这个,
npm ERR! code EPUBLISHCONFLICT
npm ERR! publish fail Cannot publish over existing version.
npm ERR! publish fail Update the 'version' field in package.json and try again.
npm ERR! publish fail
npm ERR! publish fail To automatically increment version numbers, see:
npm ERR! publish fail npm help version
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ecarroll/.npm/_logs/2021-11-11T18_45_39_813Z-debug.log
【问题讨论】: