Skip to content
← Back to Community
Why Node JS Have Outdated Node Version
Profile icon
EAZYBLACK

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

Voters
Profile icon
Sudobeast
Profile icon
EAZYBLACK
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

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.

Profile icon
EAZYBLACK

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

Profile icon
EAZYBLACK

gonna make an .sh installer thx for support

Profile icon
EAZYBLACK

image

Profile icon
EAZYBLACK

updated node i installed nvm

Profile icon
xxpertHacker

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.

Profile icon
19wintersp

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.

Profile icon
EAZYBLACK

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

Profile icon
19wintersp

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

Profile icon
ubgamingpro

@19wintersp but how

as I am trying to create a minecraft bot