为什么 lerna 发布命令失败并显示 503 服务不可用?

问题描述 投票:0回答:0

尝试从文件夹 Web“lerna publish --no-private --no-git-tag-version --no-push”中的 package.json 执行脚本。进程失败并显示 lerna ERR! E503 503 服务不可用 - PUT。所以它看起来像公司代理的问题。但同时命令在 Web 文件夹中启动

yarn publish --verbose packages/Common/themes --registry https://my-nexus.adress.com/repository/registry.npmjs.org-local/

成功结束。所有配置都在 Web 文件夹中。请帮忙。

Lerna配置:

{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "npmClient": "yarn",
  "useWorkspaces": true,
  "version": "0.0.7",
  "command": {
    "publish": {
      "registry": "https://my-nexus.adress.com/repository/registry.npmjs.org-local/"
    }
  }
}

我的纱线配置

registry "https://my-nexus.adress.com/repository/registry.npmjs.org-proxy/"
"@company:registry" "https://my-nexus.adress.com/repository/registry.npmjs.org-local/"
https-proxy false
proxy false
save-prefix ""
strict-ssl false

我的 npm 配置

strict-ssl=false
//my-nexus.adress.com/repository/registry.npmjs.org-local/:_auth="base64authtoken"
npm proxy config lerna yarnpkg-v2
© www.soinside.com 2019 - 2024. All rights reserved.