执行npm install时报错: MaxListenersExceededWarning:Possible EventEmitter memory leak detected
最近几天在用公司的星盘配置我们的运营内管时,发现在执行npm install 时,报了一个MaxListenersExceededWarning:Possible EventEmitter memory leak detected
在网上搜了一圈,大都给了个类似的解答;
在vue.config.js 文件中添加
require('events').EventEmitter.defaultMaxListeners = 0
或者 require('events').EventEmitter.defaultMaxListeners = 50
大致的意思是,除掉限制。但是我试了没有并没有什么用
博主在使用公司星盘配置运营内管时,执行npm install报错,提示可能存在EventEmitter内存泄漏。网上大多建议在vue.config.js文件中添加内容以除掉限制,但博主尝试后未解决问题。

1万+

被折叠的 条评论
为什么被折叠?



