Ask coding questions

← Back to all posts
How to update node.js
PiousGaming

Hi, anyone know how to update node.js to v16 ? i need to use current version for my code but i dont know how to update node.js. My node.js version in replit is v12.22.1 :( Any Admin See This POST Pls Update Node.js to LTS version

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
PiousGaming
Comments
hotnewtop
SixBeeps
PiousGaming

@SixBeeps i dont know why but it didn't work for me but i found out how to upgrade.
first, type npm i [email protected] in the shell,
then create a .replit file and write run = "npm start" in it.
Then it should run the project with that node version you installed.

aikochanai