grpc-js: Source nvm.sh in profile files in xds script to get nvm in subprocesses

This commit is contained in:
Michael Lumish 2020-09-15 14:52:00 -07:00
parent 3b1c130cbb
commit c0f31a8a02
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ nvm install 12
set -exu -o pipefail
[[ -f /VERSION ]] && cat /VERSION
# Make nvm available to the subprocess that the python script spawns
echo "source $NVM_DIR/nvm.sh" > ~/.profile
echo "source $NVM_DIR/nvm.sh" > ~/.shrc
export ENV=~/.shrc
cd $base
npm install