Share via

NodeTool@ task fail on hosted agent

Kiko Aumond 21 Reputation points Microsoft Employee
2022-12-01T17:14:46.867+00:00

Hi, I am running a pipeline on a macos-12 agent which has a NodeTool@ task

  - task: NodeTool@0  
            inputs:  
              versionSource: 'spec'  
              versionSpec: '16.x'  
              checkLatest: false  

This link: https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
mentions that NodeJS 16.8.1 is cached in macos-12 hosted agents

However, I often (but not always) get the following error when running my pipeline:

##[error]Unable to create directory '/opt/hostedtoolcache/node/16.18.1/x64'. EACCES: permission denied, mkdir '/opt/hostedtoolcache'  

Why?

Thank you
Kiko

Community Center | Not monitored
0 comments No comments

Answer accepted by question author

Anonymous
2022-12-01T21:09:53.26+00:00

Azure Devops is not currently supported here on Microsoft QnA.
The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum:
https://developercommunity.visualstudio.com/spaces/21/index.html
https://azure.microsoft.com/en-in/support/devops/

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.