Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
QuiteAFancyEmerald
GitHub Repository: QuiteAFancyEmerald/Holy-Unblocker
Path: blob/master/repl.sh
5154 views
1
##### Script for repl.it since it doesn't use the latest version of node.js ###
2
3
NVM_HOME="$PWD/nvm" # Changing the installation directory
4
echo " NVM_HOME='$NVM_HOME'
5
$(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
6
7
export NVM_DIR="$NVM_HOME/.nvm"
8
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
9
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
10
11
# --lts would be your desired version, i.e. 10, 12, --latest-npm. --lts is (obviously) the LTS version.
12
nvm install 20
13
14
npm install
15
16
node --max_old_space_size=2560 ./backend.js
17
18