[Vuejs]-Vercel deployment error: npm run build exited with 126

1👍

The error 126 means that, bash doesn’t have permission to execute the vite binary.

You can fix that by:

sudo chmod +x node_modules/.bin/vite

If the above didn’t work, a fresh install of the node_modules might help.

rm -rf node_modules
npm ci

Leave a comment