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+
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
After running the code you would see the following output:
And congo ? your repl's nodejs has been successfully updated to 16+.
You could further confirm it by running node -v
in the shell
This content originally appeared on DEV Community and was authored by Arnav Kumar
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.