Error after enabling pnpm

So i tried doing this command to get more disk space because I was at 97%

enable-pnpm

And I am getting a weird error preventing my discord bot to work

internal/modules/cjs/loader.js:800
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^
Error: libpng16.so.16: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:800:18)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/rbd/pnpm-volume/16525bb6-dbbe-4958-b828-3b1d10d691cc/node_modules/.registry.npmjs.org/canvas/2.7.0/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)

Any idea what can I do to fix this?

Thanks in advance :slight_smile:

Interesting error, I did a search on SO and it seems to might need to move a binary file to /usr/local/lib or /usr/lib, but I doubt you have permission to moddify the contents of /usr on Glitch.

Another solution would be to install libpng16 with apt, so you might want to ask support@glitch.com to do it for you.

Oh Okay. Il’l try this and we’ll see!

What is support glitch respond time? It been sometimes…

Hi @Oofin we respond to all support requests within 24 business hours.

When you send us a support request, you are emailed a confirmation that includes your ticket number. If you do not see a response from us, please check your spam folder. If you still can’t find it, you can reply here with your ticket number and I’ll do my best to help you!

1 Like