I am creating an Azure Devops pipleline , here is my pipeline -

pool: vmImage: ubuntu 16.04 steps: - task: NodeTool@0 inputs: versionSpec: ‘14.x’ displayName: ‘TASK | Install Node.js 14.x ’ 

But I am getting following error -

Starting: ‘TASK | Install Node.js 14.x ’ ============================================================================== Task : Node.js tool installer Description : Finds or downloads and caches the specified version spec of Node.js and adds it to the PATH Version : 0.186.0 Author : Microsoft Corporation Help : ============================================================================== Downloading: Downloading: Downloading: Downloading: Caching tool: node 0.9.0 x64 [error]Directory does not exist: /opt/hostedtoolcache/node/0.9.0/x64/bin Finishing: ‘TASK | Install Node.js 14.x ’ 

Not sure whats going wrong here. I have tested the same with versionSpec : 12.x, 10.x etc, but no luck

1 Answer

You have wrong characters

Please use this '

 - task: NodeTool@0 inputs: versionSpec: '14.x' displayName: 'TASK | Install Node.js 14.x ' 
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.