After upgrading to Nuxt version 2.12.2, I am seeing this every few minutes. The interval seems random, but it happens constantly. The only thing to be done is to restart the server.
events.js:287
throw er; // Unhandled 'error' event
^
Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (C:\Users\mad\git\balloonary-app\node_modules\@nuxt\builder\node_modules\chokidar\index.js:631:10)
at ReaddirpStream.NodeFsHandler._boundHandleError (C:\Users\mad\git\balloonary-app\node_modules\@nuxt\builder\node_modules\chokidar\lib\nodefs-handler.js:302:43)
at ReaddirpStream.emit (events.js:310:20)
at ReaddirpStream.EventEmitter.emit (domain.js:482:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -4082,
code: 'EBUSY',
syscall: 'lstat',
path: 'C:\\hiberfil.sys'
}
[nodemon] app crashed - waiting for file changes before starting...
EDIT:
I tried disabling hibernation, like this:
powercfg -h off
and sure enough, no more hiberhil.sys! So now it crashes with exactly the same message, but referring to pagefile.sys instead :(
Tried running npm run dev
as admin, but sadly the issue persists.
I should mention that this issue began when I started using npm run dev
rather than nuxt dev
to launch the app, but I can't find this "nuxt" CLI tool anywhere now (even though it is referenced everywhere in the docs here https://nuxtjs.org/guide/commands ... I can find no hint as how or where to obtain this tool.)