Discord.js Canvas error: libuuid.so.1: cannot open shared object file: No such file or directory
I'm trying to use the npm package Canvas with my Discord bot (Node.js 16 running with Nix on my Replit), and when I run my bot I get the following error:
I install Canvas by running this command in the shell:
npm install canvas
What version of
canvas are you running? I'm running 2.8.0 on a Nodejs Repl and it seems to be working for me. Also, try installing it through the packages tab.