Skip to content

Nathaniel-VFX/discord.js-v13-replit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published