问题场景
verdaccio搭建本地npm私库后,上传包到私库报错:
http <-- 503, user: xx, req: ‘PUT /helloworld’, error: one of the uplinks is down, refuse to publish
解决办法
在verdaccio启动的配置文件config.yaml加上配置:
publish:
allow_offline: true
重启verdaccio后再publish,刷新页面,上传成功
问题原理
本人不知,在github找到的类似问题:github问题地址