marykline120 wrote a reply+100 XP
5mos ago
This error usually means Vite isn’t available in the server’s PATH during the build step, even though it exists in node_modules. On older Node versions—like 16.20—Vite 4 often fails because it expects a more recent runtime, so upgrading Node to at least 18 LTS is the first thing to confirm. Also verify that your deployment process is running npm ci or npm install without --production, since Vite is a devDependency and won’t be installed if production-only installs are used. Finally, ensure that the build script is executed from the project root so the local node_modules/.bin/vite is accessible. Once you sort out the Node version and install context, the build should run normally; and while you’re at it, you might also want to check out.... Try out this App: www.cinebyhd.app