Vercel Build Error
anargya-web opened this issue · 5 comments
I'm going to close this issue for now. If you still encounter this error, feel free to reopen it.
I ran into the same problem, and here's what I found:
According to the info on this page, Vercel is currently using Node.js 20.x as the default. This particular version of Node.js operates on Amazon Linux 2023, which does not include amazon-linux-extras
. That's why we're seeing this error.
To sort this out, we could consider altering the Node.js version to 18.x or 16.x to ensure compatibility.
However, my preferred approach is to install Go via an alternative method: I entered dnf install golang -y
in the Install Command
, didn't override any other settings, and it looks like it's working fine.
@fixicelo
I tried to reproduce your explanations as best as possible but I still have errors
I just modified the "install command" box and wrote 'dnf install golang -y'
I did not want to modify the version of Node?js
Hi @psartek , you didn't mention the error message, so I'm not sure which error you encountered. But here are my settings:
Framework Preset: Hugo
Not overridden (Using the default settings of Vercel):
- Build Command
- Output Directory
- Development Command
Overridden:
- Install Command (
dnf install golang -y
)
Node.js Version: 20.x
Environment Variables:
- HUGO_VERSION
0.125.5