Lerna 返回 lerna success run 未找到生命周期脚本“build”的包

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

当我尝试运行

lerna run build --stream
时,它运行了很长时间并失败并显示
lerna success run No packages found with the lifecycle script 'build'
。存储库是最新的,我在那里做了 0 处更改。对于我的同事来说,一切都很顺利。

问题图片

我已经尝试删除 React 存储库中的 node_modules 文件,清理 nvm 和 Node 的缓存,并重新安装 Node。该问题也仅出现在一个使用 lerna 进行其他存储库的存储库中,一切正常。另一个存储库使用我用 nvm 更改的其他节点版本。 (buggy repo 的节点版本:18.14.2)我还尝试在我当前使用 Webstorm 的另一个 ide 中运行该项目,但我也在 VSC 中尝试过。

我希望构建成功并找到所有包。

node.js reactjs typescript nvm lerna
1个回答
0
投票

我也有同样的问题。 我注意到该项目位于深层嵌套目录中。 缩短项目路径后,它起作用了。

© www.soinside.com 2019 - 2024. All rights reserved.