vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

EMFILE error - too many open files

Open xiazhaoqiang opened this issue 3 years ago • 3 comments

Version

5.0.8

Environment info

Node.js v18.8.0
Ubuntu 20.04

Steps to reproduce

  1. Use the default configuration of Vue
  2. run the Tasks/serve

What is expected?

localhost:8080 can be accessed

What is actually happening?

The log shows "serve ended with error code 1"


$ vue-cli-service serve --mode development --dashboard INFO Starting development server...

[3%] setup (watch run) [9%] setup (compilation ExportsInfoApiPlugin)

node:internal/errors:484 ErrorCaptureStackTrace(err); ^

Error: EMFILE: too many open files, watch '/home/user/Programming/Vue-Tutorial/vue_test' at FSWatcher. (node:internal/fs/watchers:244:19) at Object.watch (node:fs:2315:34) at createFsWatchInstance (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/lib/nodefs-handler.js:119:15) at setFsWatchListener (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/lib/nodefs-handler.js:166:15) at NodeFsHandler._watchWithNodeFs (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/lib/nodefs-handler.js:331:14) at NodeFsHandler._handleDir (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/lib/nodefs-handler.js:567:19) at NodeFsHandler._addToNodeFs (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/lib/nodefs-handler.js:617:27) at async /home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/index.js:451:21 at async Promise.all (index 0) Emitted 'error' event on FSWatcher instance at: at FSWatcher._handleError (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/index.js:647:10) at NodeFsHandler._addToNodeFs (/home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/lib/nodefs-handler.js:645:18) at async /home/user/Programming/Vue-Tutorial/vue_test/node_modules/chokidar/index.js:451:21 at async Promise.all (index 0) { errno: -24, syscall: 'watch', code: 'EMFILE', path: '/home/user/Programming/Vue-Tutorial/vue_test', filename: '/home/user/Programming/Vue-Tutorial/vue_test' }

Node.js v18.8.0 [10%] building (0/0 modules)

Total task duration: 1.66s

xiazhaoqiang avatar Sep 14 '22 10:09 xiazhaoqiang

no idea?

durban89 avatar Aug 04 '23 10:08 durban89

no idea?

hello, Is there any solution?

myc00 avatar Jan 18 '24 08:01 myc00

same error here

byk04712 avatar Apr 17 '24 02:04 byk04712