Puppeteer Degraded performance warning
今天遇到一个问题, pnpm
执行 puppeteer
时有 warning
Degraded performance warning:
Launching Chrome on Mac Silicon (arm64) from an x64 Node installation results in
Rosetta translating the Chrome binary, even if Chrome is already arm64. This would
result in huge performance issues. To resolve this, you must run Puppeteer with
a version of Node built for arm64.
但是直接用 node 执行 puppeteer, 就没有这个 warning, 最后发现是本地 volta 和 proto 冲突导致的.
同时这也意味着 volta 没有使用正确的识别我的 CPU 架构, 故此将 volta 更换为 proto.

执行截图
Starting today, I will try to produce content bilingually!
Today, when i use pnpm
executing puppeteer
, I get a warning:
Degraded performance warning:
Launching Chrome on Mac Silicon (arm64) from an x64 Node installation results in
Rosetta translating the Chrome binary, even if Chrome is already arm64. This would
result in huge performance issues. To resolve this, you must run Puppeteer with
a version of Node built for arm64.
But if I executing puppeteer
use node
directly, command line run quickly without warning. Finally, I found volta and proto have conflict in my CLI.
On the other hand, the volta
cannot use correct cpu architecture in M1, so i have to uninstall volta.
执行截图