Next.js Discord

Discord Forum

ENOENT error after upgrading npm onn nextjs-dahboard learning project

Answered
ayrreervae posted this in #help-forum
Open in Discord
[Error: ENOENT: no such file or directory, open 'D:\jits\NextJS\nextjs-dashboard\.next\prerender-manifest.json'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'D:\\jits\\NextJS\\nextjs-dashboard\\.next\\prerender-manifest.json'
}

reasons for this and how to solve? started happening after upgrading npm.
things i tried:
- deleting .next directory and rebuilding
- updating nextjs
- cleaning build cache and rebuilding
Answered by ayrreervae
Bro i am stupid. I was running
npm run start

Instead of
npm run dev
View full answer

4 Replies

that does the result of npm run build look like (maybe some warning/error that breaks it?)
also are you using any experimental versions/features?
Bro i am stupid. I was running
npm run start

Instead of
npm run dev
Answer