Преглед на файлове

setup.sh fix calls to volta after install

Mokhtar Naamani преди 4 години
родител
ревизия
72eb9ef8b6
променени са 1 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 7 3
      setup.sh

+ 7 - 3
setup.sh

@@ -31,6 +31,10 @@ fi
 # Volta nodejs, npm, yarn tools manager
 curl https://get.volta.sh | bash
 
-volta install node@12
-volta install yarn
-volta install npx
+# After installing volta the .profile and .bash_profile are updated
+# to add it to the PATH, so we start new shell to use it
+env bash -c "volta install node@12"
+env bash -c "volta install yarn"
+env bash -c "volta install npx"
+
+echo "Open a new terminal to start using newly installed tools"