coreybutler/nvm-windows

Azure Devops Pipeline CMD Use

Open

#404 建立於 2018年11月6日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Go (46,364 star) (3,822 fork)batch import
help wanted

描述

Hi there,

I am trying to use Azure Devops Pipeline to switch installed node package versions on our build machine. Running a very basic script "nvm use 6.10.0" in a powershell/command line script, I get the successful "using 6.10.0" message, however when checking nvm list on the build machine, it is still using version 10.10.0 (highlighted in the screenshot).

It appears only manual nvm use script works, I am not sure of the internal workings of nvm on windows but will it be possible to change node package in the Azure pipeline?

Thanks in advance,

Script: nvm use 6.10.0 nvm list

image

貢獻者指南