mirror of https://github.com/grpc/grpc-node.git
grpc-js: Source nvm.sh in profile files in xds script to get nvm in subprocesses
This commit is contained in:
parent
3b1c130cbb
commit
c0f31a8a02
|
@ -29,6 +29,11 @@ nvm install 12
|
||||||
set -exu -o pipefail
|
set -exu -o pipefail
|
||||||
[[ -f /VERSION ]] && cat /VERSION
|
[[ -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
|
cd $base
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue