Deploying to vercel build error. I downgraded to node version 18
Unanswered
Indian mackerel posted this in #help-forum
Indian mackerelOP
Downgraded nextjs node version from 20 > 18 to run in vercel. when building project deployment in vercel, /lib64/libm.so.6: version `GLIBC_2.27' not found error
i can run locally node v18 my nextjs project and build. when i deploy to vercel, i get the following output:
npm ERR! code 1
12:30:09.838 | npm ERR! path /vercel/path0/node_modules/bufferutil
12:30:09.839 | npm ERR! command failed
12:30:09.840 | npm ERR! command sh -c node-gyp-build
12:30:09.840 | npm ERR! node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by node) 12:30:09.840 | npm ERR! node: /lib64/libc.so.6: version GLIBC_2.28' not found (required by node)
12:30:09.841 |
12:30:09.841 | npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2023-11-07T12_29_52_076Z-debug-0.log
12:30:09.863 | Error: Command "npm install" exited with 1
i have downgraded from node20 to node18 for the LTS option as the most current offering that AWS/vercel supports. however i am stuck now with this error and im not sure how to fix
any help would be appreciated?
thanks
i can run locally node v18 my nextjs project and build. when i deploy to vercel, i get the following output:
npm ERR! code 1
12:30:09.838 | npm ERR! path /vercel/path0/node_modules/bufferutil
12:30:09.839 | npm ERR! command failed
12:30:09.840 | npm ERR! command sh -c node-gyp-build
12:30:09.840 | npm ERR! node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by node) 12:30:09.840 | npm ERR! node: /lib64/libc.so.6: version GLIBC_2.28' not found (required by node)
12:30:09.841 |
12:30:09.841 | npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2023-11-07T12_29_52_076Z-debug-0.log
12:30:09.863 | Error: Command "npm install" exited with 1
i have downgraded from node20 to node18 for the LTS option as the most current offering that AWS/vercel supports. however i am stuck now with this error and im not sure how to fix
any help would be appreciated?
thanks