【问题标题】:Node.JS [nodemon] Internal watch failed: ENFILE: file table overflowNode.JS [nodemon] 内部监视失败:ENFILE:文件表溢出
【发布时间】:2020-08-04 00:11:42
【问题描述】:
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: src/**/*
[nodemon] starting `ts-node index.ts`
[nodemon] Internal watch failed: ENFILE: file table overflow

我尝试杀死节点进程,也尝试运行

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p 我明白了

sysctl: illegal option -- p
usage: sysctl [-bdehiNnoqx] name[=value] ...
       sysctl [-bdehNnoqx] -a

但这些似乎不起作用。我使用的是 macOS 10.15.3

【问题讨论】:

标签: node.js macos node-modules


【解决方案1】:

我遇到了同样的问题。

sudo launchctl limit maxfiles 65536 200000

为我工作。在这里找到它:https://wilsonmar.github.io/maximum-limits/

【讨论】:

    猜你喜欢
    • 2016-04-12
    • 2016-02-28
    • 2018-04-06
    • 2018-10-08
    • 2020-05-05
    • 2015-01-24
    • 2021-12-12
    • 2017-12-13
    • 2019-02-20
    相关资源
    最近更新 更多