You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Error: EMFILE: too many open files, open 'C:\Users\Mert\AppData\Local\Temp\98468220-26c9-4bbb-a0c9-7b8ba5bcd4fc'] {
errno: -4066,
code: 'EMFILE',
syscall: 'open',
path: 'C:\Users\Mert\AppData\Local\Temp\98468220-26c9-4bbb-a0c9-7b8ba5bcd4fc'
}`
The text was updated successfully, but these errors were encountered:
I have 50k+ image files.
I am getting this error: Error: EMFILE: too many open files
My code:
`const imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');
const imageminPngquant = require('imagemin-pngquant');
const files = imagemin(['temp/*.{jpg,png,jpeg}'], {
destination: 'buyuk',
plugins: [
imageminJpegtran(),
imageminPngquant({
quality: [0.6, 0.8]
})
]
});
console.log(files);`
Here is my terminal output:
`PS C:\laragon\www\test\node2> node .\index.js
Promise { }
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: EMFILE: too many open files, open 'C:\Users\Mert\AppData\Local\Temp\98468220-26c9-4bbb-a0c9-7b8ba5bcd4fc'] {
errno: -4066,
code: 'EMFILE',
syscall: 'open',
path: 'C:\Users\Mert\AppData\Local\Temp\98468220-26c9-4bbb-a0c9-7b8ba5bcd4fc'
}`
The text was updated successfully, but these errors were encountered: