|
@@ -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"
|