help me, how to fix it?

const canvacord = require("canvacord")

client.on("guildMemberAdd", async member => {
  if( !== "988334227735076874") return;
  const welcomeCard = new canvacord.Welcomer()
  .setAvatar(member.user.displayAvatarURL({format: "png"}))
  .setColor("title", "#ff121e")
  .setColor("username-box", "#ffce00")
  .setColor("discriminatior-box", "#ff7600")
  .setColor("message-box", "ff121e")
  .setColor("border", "#ff121e")
  .setColor("avatar", "ff7600")
  let attachment = new Discord.MessageAttachment(await, "welcome.png")
  member.guild.channels.cache.get("988334228368404511").send(member.user.toString(), attachment)
Error: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/runner/thx/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)

At some point I think you need to break free of FCC. This is so outside what we do and specific that I would look elsewhere. I’m not saying there is anything wrong with asking here, just that it would not be the best place to start.

If I were working on a project and got this error, the first thing I would do is google the error “Error: cannot open shared object file: No such file or directory”. When I do that, I see several entries.

That is where I would start. That is what developers do when they have an issue.

1 Like