Deploying a Vite React App (vite not found)

I’m trying to deploy a Vite React App with the build command npm run build --prefix ./breve/.
But right at the start of the deploy I get the error vite: not found.
I tried the command on my local machine and it worked perfectly.

I don’t know what I’m doing wrong here.

The build script is the standard vite build script, nothing changed.

Thank you!

Found the problem, i need to npm install --prefix ./breve/ before the build command

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