atanetweb's avatar

npm run dev not workink

when i run this command: npm run build receive this errors:

node:internal/fs/watchers:207 const error = new UVException({ ^

Error: UNKNOWN: unknown error, watch at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21) Emitted 'error' event on FSWatcher instance at: at FSWatcher._handleError (file:///V:/my.siteweb/node_modules/vite/dist/node/chunks/dep-Bid9ssRr.js:29538:10) at NodeFsHandler._boundHandleError (file:///V:/my.siteweb/node_modules/vite/dist/node/chunks/dep-Bid9ssRr.js:28011:43) at file:///V:/my.siteweb/node_modules/vite/dist/node/chunks/dep-Bid9ssRr.js:27855:5 at foreach (file:///V:/my.siteweb/node_modules/vite/dist/node/chunks/dep-Bid9ssRr.js:27759:5) at fsWatchBroadcast (file:///V:/my.siteweb/node_modules/vite/dist/node/chunks/dep-Bid9ssRr.js:27854:3) at FSWatcher. (file:///V:/my.siteweb/node_modules/vite/dist/node/chunks/dep-Bid9ssRr.js:27903:9) at FSWatcher.emit (node:events:519:28) at FSWatcher._handle.onchange (node:internal/fs/watchers:213:12) { errno: -4094, syscall: 'watch', code: 'UNKNOWN', filename: null }

i had removed node_modules and run npm install, bun not solved

con you help me?

1 like
2 replies
vincent15000's avatar

I'm not so good to solve JS problems with packages, but generally I try to upgrade the npm version.

atanetweb's avatar

@vincent15000 npm and node are all updated to latest version I put watch: { usePolling: true, interval: 500, } in vite.config.js but not solved

1 like

Please or to participate in this conversation.