Node JS

NPM

Setting up nodejs in build environment, CI

echo "# source .bash_profile to install nvm as bash function ..."
source ~/.bash_profile

# Exit on any shell error
set -e

nodejs_version="12.16.2"
echo "# use nvm to switch to requested node.js verion ${nodejs_version} ..."
nvm use ${nodejs_version} || nvm install ${notejs_version}

echo "# Using node: $(node --version)"
echo "# Using npm: $(npm --version)"
echo "PATH = $PATH"

npm ls -g yarn || npm install -g yarn
echo "# Using yarn: $(yarn --version)"

...


CategoryDevelopement