Merge pull request #1577 from murgatroid99/grpc-js_xds_script_nvm_fix

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 16:46:34 -07:00 committed by GitHub
commit 3665f3a513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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