Edi Wang

Azure Developer, Microsoft MVP

All Posts in 2022.7


How to Add Parameters for 'npm install' in Azure DevOps

Recently my Azure DevOps build pipeline failed because Azure is using npm 8.x, which will have issue for angular projects when running `npm install`.  This is a known issue which can be solved by using `--legacy-peer-deps` or `--force` for the `npm install` command. However, Azure DevOps's npm task is not taking parameters by default. Let's see how we can use these parameters in Azure DevOps. …

Azure DevOps NPM