I've been trying to make a canvas project on discord.js but I can't npm install to work properly it just installs it to my appdata folder. I'd be happy if you could help me figure it out
CodePudding user response:
You need to execute npm init -y in your project folder which then creates the necessary files for installing modules.
CodePudding user response:
Have you used npm init
in a terminal?
If not here are the steps to follow:
- Open a terminal/command window in the directory you want to store the file in it
- Run
npm init
- Fill in the project data
- Run
npm install [PACKAGE_NAME]