Terminal
sh: next: command not found
- What it means
- You tried to start the app (`npm run dev`), but its packages (`node_modules`) aren't installed in this folder yet.
- Likely causes
- The project was just cloned or pulled and
npm installhasn't run yet. - A previous
npm installwas interrupted before finishing.
- The project was just cloned or pulled and
- Prevention
- Let your agent run
npm installwhenever you open a project on a new computer or after a pull.
Copy for your agent
Starting the app says `sh: next: command not found`. Run `npm install` first, then start `npm run dev` again.
Was this page helpful?