Azure 管道中的纱线命令

问题描述

我使用下面的代码使用 yarn 构建代码,直到昨天它在 Azure DevOps 管道中完美运行

enter image description here

我不确定发生了什么变化,现在抛出以下错误

enter image description here

搜索退出代码 127 的错误,但解决方案是删除 node_modules 文件夹并重新运行。但这在构建代理中无法实现。 在这种情况下,有什么可以应用的解决方案吗?

更新:

我使用了 system.debug=true ,下面是输出

enter image description here

解决方法

我一夜之间发现这里发生了变化,InfraAdmin 已将 microsoft 托管代理更改为自托管代理,该代理没有安装纱线依赖项。