ENOENT error after upgrading npm onn nextjs-dahboard learning project
Answered
ayrreervae posted this in #help-forum
[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
Instead of
npm run start
Instead of
npm run dev
4 Replies
that does the result of
npm run build
look like (maybe some warning/error that breaks it?)@ayrreervae
[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
do you have problems while using "dev" and "build" commands?
also are you using any experimental versions/features?
Bro i am stupid. I was running
Instead of
npm run start
Instead of
npm run dev
Answer