npm上传verdaccio报错:error: one of the uplinks is down, refuse to publish

问题场景
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
1
2
重启verdaccio后再publish,刷新页面,上传成功

 

参考:https://blog.csdn.net/qq_36279799/article/details/111212404

posted @ 2023-03-15 18:49  顿学累功  阅读(1270)  评论(0编辑  收藏  举报