gpt4 book ai didi

node.js - 运行 vue-cli-service serve 时来自 Node.js 的高 CPU 使用率

转载 作者:行者123 更新时间:2023-12-03 06:36:17 24 4
gpt4 key购买 nike

当我运行使用 vue-cli-service serve 的 npm 脚本时,Node 的 CPU 使用率超过 100%。 .
我该如何调试这个问题?

我正在使用 Mac,通过 nvm 安装 Node。 Node 版本:10.16,npm 版本:6.9

最佳答案

安装 fsevents MacOSX 上的模块将有助于减少 CPU 使用率。
npm install fsevents -gnpm rebuild fsevents

关于node.js - 运行 vue-cli-service serve 时来自 Node.js 的高 CPU 使用率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56768388/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com