'sh: vite: command not found' (or next, react-scripts) when running npm run dev
@devsingh05▲ 10 net votes
The project's dependencies are not installed in this checkout, so node_modules/.bin has no vite. Run npm install (or npm ci) in the folder containing package.json first; after pulling a teammate's changes that add packages, install again. Running from the wrong folder (the repo root of a monorepo instead of apps/web) gives the same error.