You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行lerna publish命令后在首个包打包完成后停滞

当前现象

执行lerna publish命令时,完成首个包的打包后陷入停滞。停滞时的日志如下:

lerna WARN ENOLICENSE One way to fix this is to add a LICENSE.md file to the root of this repository.
lerna WARN ENOLICENSE See https://choosealicense.com for additional guidance.
(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ publish: verb packed packages/react

具体停滞在这一行:

(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠏ publish: verb packed packages/react
预期行为

成功发布至NPM

错误日志/配置信息

lerna.json

{
  "packages": [
    "packages/*",
    "docs"
  ],
  "version": "independent",
  "stream": true,
  "hoist": true,
  "command": {
    "bootstrap": {
      "npmClientArgs": ["--no-package-lock"]
    },
    "publish": {
      "ignoreChanges": ["**/stories/**", "**/tests/**"]
    }
  }
}

环境信息

  • 系统:
    • 操作系统:macOS 12.3
    • CPU:(8) arm64 Apple M1 Pro
  • 二进制文件:
    • Node: 14.21.2 - ~/.nvm/versions/node/v14.21.2/bin/node
    • npm: 6.14.17 - ~/.nvm/versions/node/v14.21.2/bin/npm
  • 工具:
    • Git: 2.32.1 - /usr/bin/git
  • npm包:
    • lerna: ^5.6.2 => 5.6.2

内容的提问来源于stack exchange,提问作者Victor Onwukwe

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 11:25:34