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

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,385 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 37,751 Reputation points Microsoft Employee
    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/

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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