DEV Community 👩‍💻👨‍💻

Marouane Etaraz
Marouane Etaraz

Posted on

Fix vercel error : A system error occurred: uv_os_gethostname returned ENOSYS (function not implemented)

If you looking for the solution you are probably has windows 7 OS.
all you have to do go to node directory in your system and follow the path :
node_modules->vercel->dist->index.js.

On top of index.js override the system function hostname:

const os=require("os")
os.hostname=()=>"localhost"
Enter fullscreen mode Exit fullscreen mode

Then run vercel again and will work with you

I hope is helped !

Top comments (0)

🌚 Life is too short to browse without dark mode