I encountered the following error using this module:
Error: EMFILE: too many open files, open '/var/data/store/nfsshare/soft/copy-node-modules-emfile/node_modules/spdx-exceptions/README.md',Error: EMFILE: too many open files, open '/var/data/store/nfsshare/soft/copy-node-modules-emfile/dist/node_modules/spdx-exceptions/README.md',Error: EMFILE: too many open files, open '/var/data/store/nfsshare/soft/copy-node-modules-emfile/node_modules/spdx-exceptions/index.json'
While everything works fine on Ubuntu 16.04 LTS on my local machine, I get the error on CentOS 7 on the server.
Here is a related question on StackOverflow. I tried to use graceful-fs instead of fs as it proposed there but it doesn't work.
I encountered the following error using this module:
Error: EMFILE: too many open files, open '/var/data/store/nfsshare/soft/copy-node-modules-emfile/node_modules/spdx-exceptions/README.md',Error: EMFILE: too many open files, open '/var/data/store/nfsshare/soft/copy-node-modules-emfile/dist/node_modules/spdx-exceptions/README.md',Error: EMFILE: too many open files, open '/var/data/store/nfsshare/soft/copy-node-modules-emfile/node_modules/spdx-exceptions/index.json'
While everything works fine on Ubuntu 16.04 LTS on my local machine, I get the error on CentOS 7 on the server.
Here is a related question on StackOverflow. I tried to use graceful-fs instead of
fs
as it proposed there but it doesn't work.I created a repo reproducing this issue.