Can someone help me for my welcomer bot please?

Hello , i have an issue with a discord bot on replit . Everytime i try to launch it it does this :
Error: Cannot find module ‘/home/runner/welcome-bot/index.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}
exit status 1

Please link to the Replit so we can see how you are importing/exporting.

Yes sure Invitation to collaborate on Replit - Replit

I’m not seeing that error.

BTW, your start script and main in package.json point to server.js, not index.js

ok thx but i have issue when i want to host the bot link’s
It says invalid but i dont understand when i host it in a monitor in better uptime

Not sure what you mean?


We have some articles/tutorials on discord bots you can check out to learn more.

ok thanks can i ask you help a last time ? I have a bot that show some npm errors but i installed it
npm WARN prepare removing existing node_modules/ before installation
npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.
npm ERR!
npm ERR!
npm ERR! Missing: @discordjs/builders@^0.12.0
npm ERR! Missing: @discordjs/opus@^0.7.0
npm ERR! Missing: @discordjs/voice@^0.8.0
npm ERR! Missing: anime-actions@^1.0.6
npm ERR! Missing: axios@^0.25.0
npm ERR! Missing: booru@^2.5.3
npm ERR! Missing: bufferutil@^4.0.6
npm ERR! Missing: canvacord@^5.2.3
npm ERR! Missing: canvas@^2.9.0
npm ERR! Missing: captcha-canvas@^3.1.0
npm ERR! Missing: cheerio@^1.0.0-rc.10
npm ERR! Missing: colors@^1.4.0
npm ERR! Missing: common-tags@^1.8.2
npm ERR! Missing: cpu-stat@^2.0.1
npm ERR! Missing: cron@^1.8.2
npm ERR! Missing: discord-backup@^3.0.1
npm ERR! Missing: discord-canvas@^1.4.1
npm ERR! Missing: discord-giveaways@^5.1.0
npm ERR! Missing: enmap@^5.8.7
npm ERR! Missing: erela.js@^2.3.3
npm ERR! Missing: erela.js-deezer@^1.0.7
npm ERR! Missing: erela.js-facebook@^1.0.4
npm ERR! Missing: erela.js-spotify@^1.2.0
npm ERR! Missing: got@^11.8.3
npm ERR! Missing: math-expression-evaluator@^1.3.10
npm ERR! Missing: memer-api@^4.0.1
npm ERR! Missing: nekos.life@^2.0.9
npm ERR! Missing: radio-browser@^2.1.9
npm ERR! Missing: random-puppy@^1.1.0
npm ERR! Missing: random-words@^1.1.2
npm ERR! Missing: request-promise-native@^1.0.9
npm ERR! Missing: rss-parser@^3.12.0
npm ERR! Missing: strip-ansi@^7.0.1
npm ERR! Missing: superagent@^6.1.0
npm ERR! Missing: tiktok-scraper@^1.4.36
npm ERR! Missing: translatte@^3.0.1
npm ERR! Missing: twit@^2.2.11
npm ERR! Missing: utf-8-validate@^5.0.8
npm ERR! Missing: weather-js@^2.0.0
npm ERR! Missing: weky@^3.1.8
npm ERR! Missing: wrap-ansi@^8.0.1
npm ERR! Missing: yargs@^17.3.1
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-04-21T18_07_31_532Z-debug.log
exit status 1

Replit: Package operation failed.

Try deleting the package-lock.json and then start to have it install the dependencies.

You also can try deleting the node_modules folder. Switch to the Shell tab next to the Console tab and run.

rm -rf ./node_modules package-lock.json

Then install the dependencies

npm i