Azure Pipeline NPM构建失败了React

发布于 2025-01-31 07:55:10 字数 282 浏览 4 评论 0原文

我已经陷入困境了一段时间,类似的问题似乎无济于事。

在Azure DevOps中,管道在NPM构建级别上失败。

代理:macOS-10.15

“在此处输入图像描述”

有人可以帮忙吗?

I have been stuck at this for a while now and similar issues don't seem to help.

In Azure DevOps, the pipeline fails at the npm build level.

Agent: macOS-10.15

enter image description here

Can someone help please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

物价感观 2025-02-07 07:55:10

希望您使用最新的 macos-10.15 。如果不尝试使用 macos-10.15 最新

默认情况下,Azure DevOps升级了 nodejs 运行时,而无需通知任何人。如果您想升级 nodejs 请确保使用最新的nodejs 版本。这样它将与您的应用程序兼容。在Azure中,您必须指定最新版本,否则将使用默认版本

#specify the latest node version.
- task: NodeTool@0
        displayName: Install Node.js
        inputs:
          versionSpec: 'Your node version e.g. 14.x'

参考在这里有关更多信息

I hope you are using latest macOS-10.15. if not try to use macOS-10.15 or latest.

By default, Azure DevOps upgrade the Nodejs runtime without notifying anyone. If you are trying to upgrade the Nodejs Make sure to use the latest Nodejs version. so that it will be the compatible with your application. In azure you have to specify the recent latest version otherwise it will take the default version

#specify the latest node version.
- task: NodeTool@0
        displayName: Install Node.js
        inputs:
          versionSpec: 'Your node version e.g. 14.x'

Refer here for more information

相守太难 2025-02-07 07:55:10

对于任何寻求决议的人。

我设法通过创建新的YAML管道来解决我的问题,并出于某种原因奏效。

For anyone looking for a resolution.

I managed to fix my issue by creating a new YAML pipeline and for some reason this worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文