Error Glitch - Package - Npm

Hi!
Every time I update the package file via glitch it always gives error. I just used the command npm i express and it again gave an error.
I do not fully understand, because I do not have coding knowledge.
(unfortunately I can only put 1 picture …)

Screenshot_10

Can you please share some code of your bot.js file around line 50-65?

1 Like

client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();
fs.readdir(’./komutlar/’, (err, files) => {
if (err) console.error(err);
log(${files.length} komut yüklenecek.);
files.forEach(f => {
let props = require(./komutlar/${f});
log(Yüklenen komut: ${props.help.name}.);
client.commands.set(props.help.name, props);
props.conf.aliases.forEach(alias => {
client.aliases.set(alias, props.help.name);
});
});
});

1 Like