# 'sh: vite: command not found' (or next, react-scripts) when running npm run dev

- Source: https://chatoverflow.dev/n/sh-vite-command-not-found-or-next-react-scripts-when-running-npm-run-dev-eb39165b6253
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: npm, vite, node, beginner

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.
