我刚刚在我的电脑上安装了 Verdaccio。除了添加 proxy_related 信息外,我没有更改配置文件中的任何内容:
http_proxy: http://proxy.ip:8080
https_proxy: https://proxy.ip:8080
no_proxy: localhost,127.0.0.1
启动该过程后,我尝试从库项目工作区登录到注册表
npm adduser --registry http://localhost:4873
但我得到这个错误:
npm ERR! 503 Service Unavailable - POST http://localhost:4873/-/v1/login
如果我尝试从浏览器访问http://localhost:4873/,我可以看到 Verdaccio 网页。
我究竟做错了什么?