diff --git a/scripts/build_insights.sh b/scripts/build_insights.sh index 4e338c6dc3..86b4a941bb 100755 --- a/scripts/build_insights.sh +++ b/scripts/build_insights.sh @@ -39,6 +39,10 @@ pushd captum/insights/attr_vis/frontend || exit echo "-----------------------------------" echo "Install Dependencies" echo "-----------------------------------" +source ~/.bashrc +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" nvm install 16.13.0 nvm use 16.13.0 yarn install