Cannot find module

Trying to program a discord bot but keep getting an error when I run the node run index.js command. Node . doesnt work at all.


const Discord = require(discord.js);
const bot = new Discord.Client();



    throw err;

Error: Cannot find module 'C:\Users\giann\Desktop\Bot\run'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

(You might get an answer here, but this forum is focussed on npm itself so you you might want to ask elsewhere too.)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.