diff --git a/azure-pipelines-master.yml b/azure-pipelines-master.yml index cbecb3b8d40..de6269d29e1 100644 --- a/azure-pipelines-master.yml +++ b/azure-pipelines-master.yml @@ -23,6 +23,17 @@ steps: packageType: sdk version: '5.0.100' +- task: NodeTool@0 + displayName: "Use Node 16.x" + inputs: + versionSpec: 16.x + +- powershell: | + npm install -g npm-windows-upgrade + npm-windows-upgrade -v 8.13.2 + npm -v + displayName: Upgrade npm to latest version + - task: NuGetToolInstaller@1 displayName: 'Use NuGet' inputs: diff --git a/azure-pipelines-stable.yml b/azure-pipelines-stable.yml index db04f095b68..71fb5d0060b 100644 --- a/azure-pipelines-stable.yml +++ b/azure-pipelines-stable.yml @@ -28,6 +28,17 @@ steps: inputs: versionSpec: 5.9.1 +- task: NodeTool@0 + displayName: "Use Node 16.x" + inputs: + versionSpec: 16.x + +- powershell: | + npm install -g npm-windows-upgrade + npm-windows-upgrade -v 8.13.2 + npm -v + displayName: Upgrade npm to latest version + - task: PowerShell@2 displayName: 'dev build' inputs: