Hi I have installed nvm and have nvm.sh under /home/Jenkins/.nvm.
Have configured NVM_DIR to Jenkins bashrc
How to use nvm to use specific version npm in my pipeline.
Stages {
Stage {
Sh
"""
Source~/.nvm
/home/Jenkins/. nvm/nvm.sh use 12.16.3
"""
}
}
Is not worki
Hi, I am having a similar issue. Did you manage to find a solution?
On Tuesday, 19 May 2020 13:13:22 UTC+1, hawk base wrote:
>
> 1) How to install NVM on the Jenkins Slave?
>
> 2) How can we make the jobs to use that NVM so that we can install
> multiple NodeJS / NPM version?
1) How to install NVM on the Jenkins Slave?
2) How can we make the jobs to use that NVM so that we can install multiple
NodeJS / NPM version?
Note: I am trying to follow this URL:
https://github.com/nvm-sh/nvm/blob/master/README.md#install--update-script but
not able to understand as how