mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Update repl.sh
This commit is contained in:
parent
6aca608882
commit
d578e7dc39
1 changed files with 16 additions and 13 deletions
29
repl.sh
29
repl.sh
|
@ -1,16 +1,19 @@
|
|||
##### Script for repl.it since it doesn't use the latest version of node.js ###
|
||||
|
||||
NVM_HOME="$PWD/nvm" # Changing the installation directory
|
||||
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
|
||||
|
||||
export NVM_DIR="$NVM_HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
|
||||
# --lts would be your desired version, i.e. 10, 12, --latest-npm. --lts is (obviously) the LTS version.
|
||||
nvm install 16
|
||||
|
||||
npm install
|
||||
if [ -z "$ALREADY_SETUP" ]
|
||||
then
|
||||
NVM_HOME="$PWD/nvm" # Changing the installation directory
|
||||
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
|
||||
|
||||
export NVM_DIR="$NVM_HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
|
||||
# --lts would be your desired version, i.e. 10, 12, --latest-npm. --lts is (obviously) the LTS version.
|
||||
nvm install 16
|
||||
npm install
|
||||
|
||||
printf 'ALREADY_SETUP=true\n\n%s\n' "$(cat repl.sh)" > repl.sh
|
||||
fi
|
||||
|
||||
node --max_old_space_size=2560 ./backend.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue