Next.js Discord

Discord Forum

npm run dev not working

Unanswered
Chinese Alligator posted this in #help-forum
Open in Discord
Chinese AlligatorOP
Everytime I run npm run dev to test my Nextjs application I receive the following errors:

- ready started server on [::]:3000, url: http://localhost:3000
(node:17032) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[Error: UNKNOWN: unknown error, readlink 'C:\Users\----\OneDrive - West Point\Documents\Projects\---------\.next\server\pages\_app.js'] {
  errno: -4094,
  code: 'UNKNOWN',
  syscall: 'readlink',
  path: 'C:\\Users\\-----\\------\\Documents\\Projects\\-----\\.next\\server\\pages\\_app.js'
}


Haven't been able to find the solution, how do i fix it?

4 Replies

it seems like it failed at reading files in OneDrive. can you place the project in a local folder?
Chinese AlligatorOP
ive typically kept my folders in one drive and have not previously expereince this problem.
do you think it could by anthing else?
i see many posts related to Windows Node.js problems in this community. i would use WSL if i were a win user.