ember-native-class-codemod
ember-native-class-codemod copied to clipboard
Puppeteer version is not compatible with M1 Macs
On M1 Macs puppeteer does not correctly load Chrome/Chromium with the error:
/Users/kevin/.npm/_npx/4e4aff0f1510c9e0/node_modules/ember-codemods-telemetry-helpers/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193
reject(new Error([
^
Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT
This was an issue in Puppeteer that has been fixed 10.0.0 and later - https://github.com/puppeteer/puppeteer/issues/6622. With the version used in this package there's no way to override the Chrome location that puppeteer will use because the path was hardcoded.
There's an open pull request to bump the puppeteer version here: https://github.com/ember-codemods/ember-native-class-codemod/pull/468
I believe this issue has been resolved in v3.0.0.