Browse Source

setup.sh: different approach to get volta working after install

Mokhtar Naamani 4 years ago
parent
commit
0ee70123c4
1 changed files with 6 additions and 5 deletions
  1. 6 5
      setup.sh

+ 6 - 5
setup.sh

@@ -31,10 +31,11 @@ fi
 # Volta nodejs, npm, yarn tools manager
 curl https://get.volta.sh | bash
 
-# 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"
+# source env variables added by Volta
+source ~/.bashrc
+
+volta install node@12
+volta install yarn
+volta install npx
 
 echo "Open a new terminal to start using newly installed tools"