Node-canvas doesn't work

Add a system library array before the final } in replit.nix, like this:

  env = {
    LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [

If this breaks other programs, try and configure your repl such that libuuid is only added to the library path where needed.
Look out for when Automatically Installing Python System Dependencies is ported to node.js so you can request to list libuuid as needed for node-canvas.

1 Like