skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

    For anyone looking for a resolution.

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


  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search