Ask coding questions

← Back to all posts
Why Node JS Have Outdated Node Version
EAZYBLACK (0)

Hey , I Want To Update Node JS In Repl.it Node Have Outdated Version
Lts is 14 and current is 15
i wanna update to lts
node 12 is outdated

Comments
hotnewtop
RYANTADIPARTHI (6006)

i don't think repl.it upgrades yet. They're probably working on it. But for now, i guess you have to work with it.

EAZYBLACK (0)

How To Update Node JS Repl.it
Open Ur Repl
click shell
type this command
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
and press enter
then wait
now type that
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
and press enter
then type
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
and press enter
then type
nvm install v14.16.0
and press etner
then type
nvm use v14.16.0
and press enter
And U Finished

EAZYBLACK (0)

gonna make an .sh installer thx for support

EAZYBLACK (0)

updated node i installed nvm

xxpertHacker (865)

Install it into your own directory and run that binary instead of the default node in /bin.

This works for every single language on Repl, and it's that simple.

19wintersp (1121)

A lot of the languages are out-of-date; apparently they're working on it? I don't think there's a way of updating it.

EAZYBLACK (0)

@19wintersp i tried to update with nvm it saided install node 14 it says completed i ran node -v and it says 12 again

19wintersp (1121)

@EAZYBLACK You might need to check the install directory; the current installation might be overriding it.