Home > Mobile >  npm install doesnt create the node_modules folder
npm install doesnt create the node_modules folder

Time:12-12

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:

  1. Open a terminal/command window in the directory you want to store the file in it
  2. Run npm init
  3. Fill in the project data
  4. Run npm install [PACKAGE_NAME]
  • Related