React app can't build because sh 1 : react-scripts permissions denied

fghirz
FREE

4 months ago

Hi there !

I've been trying to run a base react app in Railway since a while but it seems there are no way to make it work, every single react-app I create (even blank) end up throwing the following error :

sh: 1: react-scripts: Permission Denied
"npm run build" did not complete successfully

Anyone having the same issue ?

Thanks

Solved

1 Replies

4 months ago

Hello,

Please make sure you are not commiting your node_modules folder to GitHub.

Best.
Brody


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

a month ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 28 days ago


React app can't build because sh 1 : react-scripts permissions denied - Railway Help Station