My project was running fine when, with a small change in the code, npm run dev stopped working, and the terminal showed the following message:
[Error: UNKNOWN: unknown error, readlink 'C:\\Users\\username\\OneDrive\\Desktop\\Stuff\\web-project\\.next\\server\\middleware-manifest.json]
{errno: -4094, code: 'UNKNOWN',
syscall: 'readlink',
path: 'C:\\Users\\username\\OneDrive\\Desktop\\Stuff\\web-project\\.next\\server\\middleware-manifest.json'}
I undid the small change (it was some text I was adding), but that didn't fix anything. I checked the file path and the permissions, and everything is correct.