Forums

Increase number of allowed opened files

Hello, I'm installing dependencies for my react app and I'm getting this from the npm:

npm ERR! EMFILE: too many open files

On the Internet I've found solution. I need to edit file located in /etc/pam.d directory. PA isn't allowing me to do anything to this file.

I've also tried to run ulimit -n 2048 but again I got "Operation is not permitted".

Please advise.

As a paid user you should have 16k open files to use which really should be enough. Do you know whats causing the all the open files?