Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 659 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 659 Bytes

How to use Discord.js v13 in Replit?

Updating Node.js v12 to Node.js v16 in Replit

Execute this script on the shell to install node.js v16:

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

Create a .replit file to execute node from the shell instead of the console.

run = "npm start"

Now, add a code to package.json file

  "scripts": {
    "start": "node ."
    }

If you had packages like discord.js v12 or sqlite before,please reinstall them.

npm uninstall discord.js && npm i discord.js

You can run the code now!