Sh: 1: vite: Permission denied

Facing problem while deploying react + vite app.

Hi,

Your Build Command in the screenshot doesn’t appear to be installing dependencies, e.g:

npm install && npm run build

Also, you’ll likely see a permission error if you’ve committed your node_modules folder into your repo, which isn’t recommended. You should remove node_modules from the repo and let npm install the appropriate packages for the platform you’re deploying to.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.