For easy of install, control the nodejs/npm versions used, the idea is to:
- Install https://wiki.jenkins-ci.org/display/JENKINS/Nvm+Wrapper+Plugin in CIs.
- Configure all jobs using $npmcmd to make use of the jenkins plugin. Use different (old, latest...) nodejs versions here and there.
- Configure $npmcmd globally to be, simply, "npm".
- Once verified everything is working, kill $npmcmd competely from local_ci