Nvm in Jenkins pipeline

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Nvm in Jenkins pipeline

Manoj Chander
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 {
/home/Jenkins/. nvm/nvm.sh use 12.16.3

Is not working .

Regards ,

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAGQNZuS0iXn2WAc8zJ1wFtCG72fgtSQ0PdS2jv1jxzdRCftm7Q%40mail.gmail.com.