Azure Devops Pipeline Is Throwing Error Installing Node Js
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...
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 '