Error: ENFILE: file table overflow, scandir while run reaction on Mac

后端 未结 1 1801
名媛妹妹
名媛妹妹 2021-01-30 18:09

I\'m trying to install and run Reaction on mac osx 10.12.15 within below command

npm install -g reaction-cli reaction init cd reaction reaction

Then I got below

相关标签:
1条回答
  • 2021-01-30 18:30

    This is might be due to the limit on file open files on mac. By default it is set to low. You will need to increase the default size.

    $ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
    $ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
    $ sudo sysctl -w kern.maxfiles=65536
    $ sudo sysctl -w kern.maxfilesperproc=65536
    $ ulimit -n 65536 
    

    Refer this link for more details.

    0 讨论(0)
提交回复
热议问题