Updating Node.js to 16+ in Replit

Hey There,
Welcome to my first post, today i’ll tell you how can you update your Replit’s Nodejs version to 16+, so lets get started.

Many want to do that as to support Discord’s latest v13 as it would only run on Nodejs v16.6 or higher. But there ma…


This content originally appeared on DEV Community and was authored by Arnav Kumar

Hey There,
Welcome to my first post, today i'll tell you how can you update your Replit's Nodejs version to 16+, so lets get started.

Many want to do that as to support Discord's latest v13 as it would only run on Nodejs v16.6 or higher. But there maybe your own reasons (Nobody likes old versions ?).

Here's our repl at version 12.x.x after this tutorial it will be updated to 16+
Unupdated Repl

At first go to your repl or if you don't have any just create one.

Go to the shell prompt and run the following code

npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH

Shell with code

After running the code you would see the following output:

Shell after Run

And congo ? your repl's nodejs has been successfully updated to 16+.
You could further confirm it by running node -v in the shell

Success


This content originally appeared on DEV Community and was authored by Arnav Kumar


Print Share Comment Cite Upload Translate Updates
APA

Arnav Kumar | Sciencx (2021-08-21T15:42:55+00:00) Updating Node.js to 16+ in Replit. Retrieved from https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/

MLA
" » Updating Node.js to 16+ in Replit." Arnav Kumar | Sciencx - Saturday August 21, 2021, https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/
HARVARD
Arnav Kumar | Sciencx Saturday August 21, 2021 » Updating Node.js to 16+ in Replit., viewed ,<https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/>
VANCOUVER
Arnav Kumar | Sciencx - » Updating Node.js to 16+ in Replit. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/
CHICAGO
" » Updating Node.js to 16+ in Replit." Arnav Kumar | Sciencx - Accessed . https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/
IEEE
" » Updating Node.js to 16+ in Replit." Arnav Kumar | Sciencx [Online]. Available: https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/. [Accessed: ]
rf:citation
» Updating Node.js to 16+ in Replit | Arnav Kumar | Sciencx | https://www.scien.cx/2021/08/21/updating-node-js-to-16-in-replit/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.