Hi! Help me. I using visual studio code

const Discord = require(‘discord.js’);

const client = new Discord.Client();

client.once(‘ready’, () => {
console.log(‘Gamer Gang is online!’);
})

client.login(‘token’);


PS C:\Users\laurm\Desktop\testfolder> node .
internal/modules/cjs/loader.js:329
throw err;
^

Error: Cannot find module ‘C:\Users\laurm\Desktop\testfolder\index.js’. Please verify that the package.json has a valid “main” entry
at tryPackage (internal/modules/cjs/loader.js:321:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:682:18)
at resolveMainPath (internal/modules/run_main.js:12:25)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:65:24)

at internal/main/run_main_module.js:17:47 {

code: ‘MODULE_NOT_FOUND’,
path: ‘C:\Users\laurm\Desktop\testfolder\package.json’,
requestPath: ‘C:\Users\laurm\Desktop\testfolder’
}

Hey, did you run

npm install discord.js

on command prompt in the same folder as your project’s package.json, and verify that discord.js has been added to the dependencies section of your project’s package.json?

This happens to me too. I have installed Discord.js so i’m not sure of how to fix it? Any other ideas?