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 install hasn't run yet.
  • A previous npm install was interrupted before finishing.
Prevention
Let your agent run npm install whenever 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.

Full help article“Module not found” after pulling changes

Last reviewed Nov 8, 2026