πCreate the package.json
The package.json
file is a kind of manifest for your project. It can do a lot of things, it is also where npm stores the names and versions of all the installed packages that your project depends on.
How do I create the package.json
file?
package.json
file?Open the Terminal in your project's directory (Windows use: Shift+Right Button and click Open PowerShell) and type:
You need NodeJS and npm installed on your computer, if it is not installed follow the instructions below.
Putting dependencies in your package.json
package.json
Installing discord.js
To install, type in your Terminal
Your package.json
should look like this.
package.json
Last updated