因为npm默认镜像源连接质量差,verdaccio很容易报uplink is offline的问题(因为连接超时了)。 如果需要,排查到这个错误时,到配置文件(config.yml)修改uplinks为需要的npm源,然后重启verdaccio服务即可 # https://verdaccio.org/docs/configuration#uplinks# a list of other known repositories we can talk touplinks:...
97 + ## This will allow the publisher to publish packages even if any uplink is down. 98 + # allow_offline: true 99 + 95 100 # if you use nginx with custom path, use this to override links 96 101 #url_prefix: https://dev.company.local/verdaccio/ 97 102 src/lib/sto...
1. 文件映射宿主机时需要 将default.yaml 改名为 config.yaml 2.config.yaml添加配置 1 2 3 4 ## Special packages publish configurations publish: ## This will allow the publisher to publish packages even if any uplink is down. allow_offline:true...
: boolean; } & CommonWebConf; export interface UpLinksConfList { [key: string]: UpLinkConf; } export interface AuthHtpasswd { file: string; max_users: number; } export type AuthConf = any | AuthHtpasswd; export interface JWTOptions { sign: JWTSignOptions; verify: JWTVerifyOptions; } ...
### Advanced settings### Special packages publish configurationspublish:## This will allow the publisher to publish packages even if any uplink is down.allow_offline:true
Username: dais**li Password:cY***1*** Email: (this IS public) 11***28@qq.com 5.发布私有库 npm publish --registry http://verdaccio托管的ip地址:4873 npm publish --registry http://localhost:4873 6.安装私有库 npm i 私有库名称 7.使用私有库 var 私有库名称 = require('私有库名称');...
Copy link MultiplycommentedMay 20, 2020 We're seeing the same issue, and have had it happen for a long time. Single instance basic k8s deployment with default container image. All we do, is act as a proxy to speed up local builds, and 60% of the time when a PR introduces a new pa...