Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dvdfreitas's avatar

How to use "vite" without using "npm" on the server

I can't use npm on my hosting server. After uploading the files (using git), I get the following error:

Vite manifest not found at: ....

Is there a way to precompile locally?

Thanks

0 likes
3 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Sure. Run npm run build locally and make sure that you upload /public/build

1 like
MaverickChan's avatar

run npm run build first , then upload the build directory to the server.

1 like

Please or to participate in this conversation.