coreybutler/nvm-windows

Azure Devops Pipeline CMD Use

Open

#404 opened on Nov 6, 2018

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Go (3,822 forks)batch import
help wanted

Repository metrics

Stars
 (46,364 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide