简体   繁体   中英

npm install doesnt create the node_modules folder

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

Have you done npm init yet?

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]

You need to execute npm init -y in your project folder which then creates the necessary files for installing modules.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM