简体   繁体   English

Azure devops 管道在安装节点 js 时抛出错误

[英]Azure devops pipeline is throwing error installing node js

I am creating an Azure Devops pipleline, here is my pipeline -我正在创建一个 Azure Devops 管道,这是我的管道 -

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         : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/node-js
==============================================================================
Downloading: https://nodejs.org/dist/v0.9.0/node-v0.9.0-linux-x64.tar.gz
Downloading: https://nodejs.org/dist/v0.9.0/win-x64/node.exe
Downloading: https://nodejs.org/dist/v0.9.0/node.exe
Downloading: https://nodejs.org/dist/v0.9.0/node.lib
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我用 versionSpec 测试过同样的:12.x、10.x 等,但没有运气

You have wrong characters '你有错误的字符'

Please use this '请使用这个'

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM