Terminal

npm error code ENOENT: syscall open '.../package.json' — Could not read package.json

What it means
The terminal is running inside a folder that doesn't have your Next.js app in it yet.
Likely causes
  • The session was opened in the parent Development folder instead of your project's folder.
  • The Next.js skeleton hasn't been created yet (create-next-app hasn't run).
Prevention
Always open your agent session directly inside Development/<your-project-name>.

Copy for your agent

npm says it can't find package.json. Check which folder we're in (`pwd` and `ls`), and either move into the project folder or create the app skeleton if we haven't yet.

Full help articleYou're lost: how to resume a session and see where you are

Last reviewed Nov 8, 2026