This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Yuriy Smetana | |
# Node Version Manager with Jenkins | |
# https://github.com/creationix/nvm , https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/ | |
set +ex # immediate script fail off (important!), echo off | |
export NVM_DIR="$HOME/.nvm" # set local path to NVM | |
. ~/.nvm/nvm.sh # add NVM into the Shell session | |
#nvm install v6.11.3 # first time only | |
nvm use v6.11.3 # choose current version | |
set -ex # immediate script fail on (default), echo on (default) |