Can't Install discord.js

I have already Enabled pnpm and I my package.json file is not empty. But I cant install new dependencies with Add Package button and pnpm install <Package_Name.js>. I need help ASAP!

Does any error occur when you try to install the packages?

No but they don’t occur in dependencies

Adding

    "discord.js": "^12.4.0",

to your package.json should fix it.

"discord.js": "^12.x", would also work. If this is the last package, delete the comma.

1 Like