Przeglądaj źródła

setup.sh fix calls to volta after install

Mokhtar Naamani 4 lat temu
rodzic
commit
72eb9ef8b6
1 zmienionych plików z 7 dodań i 3 usunięć
  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"