Update repl.sh

This commit is contained in:
Quite A Fancy Emerald 2022-03-03 22:44:02 +00:00 committed by GitHub
parent d578e7dc39
commit 47ac754150
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,5 @@
##### Script for repl.it since it doesn't use the latest version of node.js ### ##### Script for repl.it since it doesn't use the latest version of node.js ###
if [ -z "$ALREADY_SETUP" ]
then
NVM_HOME="$PWD/nvm" # Changing the installation directory NVM_HOME="$PWD/nvm" # Changing the installation directory
echo " NVM_HOME='$NVM_HOME' echo " NVM_HOME='$NVM_HOME'
$(wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh)" | sed -E 's/\$(HOME|\{HOME\})/$NVM_HOME/g' | bash # Installing with the specified directory $(wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh)" | sed -E 's/\$(HOME|\{HOME\})/$NVM_HOME/g' | bash # Installing with the specified directory
@ -11,9 +10,7 @@ then
# --lts would be your desired version, i.e. 10, 12, --latest-npm. --lts is (obviously) the LTS version. # --lts would be your desired version, i.e. 10, 12, --latest-npm. --lts is (obviously) the LTS version.
nvm install 16 nvm install 16
npm install npm install
printf 'ALREADY_SETUP=true\n\n%s\n' "$(cat repl.sh)" > repl.sh
fi
node --max_old_space_size=2560 ./backend.js node --max_old_space_size=2560 ./backend.js