error
venkat4400
FREEOP

23 days ago

bun run build

235ms

$ vite build

/usr/bin/bash: line 1: /app/node_modules/.bin/vite: Permission denied

error: script "build" exited with code 126

ERROR: failed to build: failed to solve: process "bun run build" did not complete successfully: exit code: 126

$10 Bounty

1 Replies

diogoribeirodev
FREETop 5% Contributor

23 days ago

You’ve not provided much information here, but a Node package “permission denied” error often points to you committing the node_modules folder in your repo, which isn’t recommended. IF that is the case, you should remove the node_modules folder from your repo and install dependencies as part of your build command.


Loading...