Next.js Discord

Discord Forum

Vercel Node.js error

Answered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
Hi! I have a program on my computer, next.js, node.js 21.1.0, Next.js 14.0.1. When I run npm run build on my local computer, there are no errors. When I tried to deploy to vercel, I got this error:
node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
Error: Command "npm run build" exited with 1

Can someone please help me fix this problem? I'm on windows 11 (no WSL or Docker) and am coding in VSCode. Thank you so much!
Answered by Saltwater Crocodile
I found the error: I had node.js as one of my dependencies
View full answer

2 Replies