What node versions does Glitch support?

Hello, I’m wanting to update my node version but I seem to keep getting an error saying the node version doesn’t exist, this made me thought if Glitch only supports certain node versions. Does anyone know if this is true?

I have a couple tricks up my sleeve for this situation.

Can you try this sh script?

# Installer
NVM_HOME="$PWD/nvm" # Changing the installation directory
echo " NVM_HOME='$NVM_HOME'
$(wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/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 --lts

npm install



# Runner
export NVM_DIR="$PWD/nvm/.nvm" &&
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&

nvm install --lts
node index.js

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.