npm run dev
> [email protected] dev
> next dev
▲ Next.js 14.2.3
- Local: http://localhost:3000
- Environments: .env.local
✓ Starting...
[Error: UNKNOWN: unknown error, readlink 'C:UsersHOneDriveDesktopMERN-MajorProjectdoctor-appointment-booking-web-app.nextstaticchunksmain-app.js'] {
errno: -4094,
code: 'UNKNOWN',
syscall: 'readlink',
path: 'C:\Users\H\OneDrive\Desktop\MERN-MajorProject\doctor-appointment-booking-web-app\.next\static\chunks\main-app.js'
}
HOW do i solve this error , i am working on a next js web app ??
[http://localhost:3000/](https://i.sstatic.net/XWe8nalc.png)
I have used Strapi API and was connectiing it to the web app .
2
Answers
Looks like this issue was referenced prior 1.
Assuming you have already tried
npm build
andnpm update
thennpm run dev
with no resolution:npm cache clear --force
npm run dev
Considering npm,
npm cache clear
is a alias fornpm cache clean
. "Cleaning" the cache folder consists of removing all data out of it. Note this is usually not necessary as npm’s cache is typically resistant to data corruption due to self healing.npm stores cache data in directory within the configured cache typically named
_cacache
. This will manage local key and content address caches. Due to its ability for concurrency; running the subcommand of--force
is required forclean
to run 7.24.2 (legacy) and up.If this does not work it could potentially be antivirus killing your dev server on
http://localhost:3000
. Ensure your server is running with a exception added to your firewall.References:
2
Install latest Node Version
Fresh Install Next.JS