Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMFILE: too many open files on ng build #2745

Closed
mihaivarga opened this issue Oct 17, 2016 · 5 comments
Closed

EMFILE: too many open files on ng build #2745

mihaivarga opened this issue Oct 17, 2016 · 5 comments

Comments

@mihaivarga
Copy link

OS?

Windows 10

Versions.

angular-cli: 1.0.0-beta.17
node: 6.3.0
os: win32 x64

Repro steps.

Assets folder contains 2600+ files.
Run: ng build --prod

The log given by the failure.

16000ms building modules
57ms sealing
1ms optimizing
0ms basic module optimization
227ms module optimization
1ms advanced module optimization
29ms basic chunk optimization
1ms chunk optimization
0ms advanced chunk optimization
0ms module and chunk tree optimization
129ms module reviving
12ms module order optimization
13ms module id optimization
7ms chunk reviving
34ms chunk order optimization
48ms chunk id optimization
99ms hashing
2ms module assets processing
215ms chunk assets processing
7ms additional chunk assets processing
0ms recording
0ms additional asset processing
4266ms chunk asset optimization
4012ms asset optimization
95% emitting{ Error: EMFILE: too many open files, open '\app\dist\assets\ckeditor\plugins\smiley\lang\el.js'
at Error (native)
errno: -4066,
code: 'EMFILE',
syscall: 'open',
path: '\app\dist\assets\ckeditor\plugins\smiley\lang\el.js' }
fs.js:640
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: EMFILE: too many open files, open '\app\node_modules\webpack\lib\Compiler.js'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at getErrorSource (\app\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:379:21)
at printErrorAndExit (\app\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:395:16)
at process.emit (\app\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:415:16)
at process._fatalException (bootstrap_node.js:254:26)

Mention any other details that might be useful.

I have to copy assets manually each time.

I removed full path from log due to client privacy.

@filipesilva
Copy link
Contributor

#2570 should help fix this, it'll come out on the next release.

@tallaxes
Copy link

tallaxes commented Oct 20, 2016

@joao-fidalgo
Copy link

This problem is still occurring on @angular/[email protected]

@gentlemanjohn
Copy link

Still an issue on 1.1.3

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants