0

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.

Joshua
  • 1,005
  • 1
  • 11
  • 16
  • Is there any additional info with "View raw log"? And do you have the appropriate version of npm installed? I see you are specifying a Node version. – Rob Reagan May 23 '22 at 12:36
  • Hey @RobReagan Not really. The only thing i can point out is that the pipeline is using npm version 6.14.4 and locally I am using v6.14.10. Im not sure how to change the npm versions in a pipeline. – Joshua May 28 '22 at 10:46

2 Answers2

0

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

Delliganesh Sevanesan
  • 4,146
  • 1
  • 5
  • 15
0

For anyone looking for a resolution.

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

Joshua
  • 1,005
  • 1
  • 11
  • 16