NPM install error

I’m getting the following error everytime I start my bot, how to fix?

npm ERR! path /app/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
npm ERR! node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node)
npm ERR! node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by node)
npm ERR! node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

can you downgrade the version of the canvas package? the project container only has glibc 2.23

Downgraded canvas version but still same issue

can you downgrade farther? This version of glibc is from 2016, so

Does not work, now its not even letting me run any command and just keeps showing that error

I fixed it by installing older node version with nvm (node: version `GLIBC_2.28` not found (required by node) | bobbyhadz), also enabled pnpm by using enable-pnpm command

1 Like

oh so it was node itself using a newer glibc than is available? what version of node was that?

are you using nvm outside of glitch’s built in nvm?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.