NPM Won't Install Packages

Hello, can you try opening the Glitch terminal, write:

Note: Make a copy of your package.json file!

rm -rf node_modules/ package.json
npm init -y
pnpm install -/save discord.js express

you can use pnpm install --save <... packages> to install npm packages.

Now make the necessary modifications to package.json to match all the properties you had in the old package.json file.

2 Likes