Next.js Discord

Discord Forum

localhost error

Unanswered
Masked Booby posted this in #help-forum
Open in Discord
Masked BoobyOP
my-app@0.1.0 dev
next dev

- ready started server on [::]:3000, url: http://localhost:3000
[Error: EINVAL: invalid argument, readlink 'C:\Users\vishr\OneDrive\Desktop\framework\my-app.next\package.json'] {
errno: -4071,
code: 'EINVAL',
syscall: 'readlink',
path: 'C:\Users\vishr\OneDrive\Desktop\framework\my-app\.next\package.json'
}
could someome help me with this

5 Replies

Did you try installing your app as a dependency of itself by any chance?
Masked BoobyOP
No
As of now,I cloned it from my repo and executed npm run dev and it's working
But I do get that error sometimes ,am new to nextjs and wanna know how to resolve this error so that it's not gonna be an issue when am working on bigger projects !!
This is very rare and usually it happens when a package is installed as a dependency of itself.
You can try updating your node and npm versions to their latest stable versions.