We have a build running a "NPM install" task in Azure DevOps (VSTS).
Error from the log:
2018-11-30T11:13:20.3544084Z ##[debug]Agent.BuildDirectory=D:\a\1
2018-11-30T11:13:20.3544294Z ##[debug]rm -rf D:\a\1\npm
2018-11-30T11:13:20.3544390Z ##[debug]removing directory
2018-11-30T11:13:20.3544478Z ##[debug]task result: Failed
2018-11-30T11:13:20.3597315Z ##[error]Error: Npm failed with return code: 1
2018-11-30T11:13:20.3606909Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Npm failed with return code: 1
2018-11-30T11:13:20.3608689Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Npm failed with return code: 1
It seems it is unable to delete the folder "D:\a\1\npm"
Even the builds who used to be successful are now consistently failing (last successful build was 2018-11-27). We are running on Agent Pool "Hosted VS2017".
Are anybody else experiencing something similar in Azure DevOps/VSTS?
EDIT: The yml for the step:
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
workingDir: web/
verbose: true
EDIT 2: It also fails when the "NPM Install" is ran as the first task in the Buils:
2018-11-30T14:13:49.0617793Z ##[debug]Agent.BuildDirectory=D:\a\1
2018-11-30T14:13:49.0617936Z ##[debug]rm -rf D:\a\1\npm
2018-11-30T14:13:49.0618038Z ##[debug]removing directory
2018-11-30T14:13:49.0618144Z ##[debug]task result: Failed
2018-11-30T14:13:49.0671864Z ##[error]Error: Npm failed with return code: 1