Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puppeteer won't install on M1 Mac #18

Open
artpi opened this issue Jan 26, 2022 · 0 comments
Open

Puppeteer won't install on M1 Mac #18

artpi opened this issue Jan 26, 2022 · 0 comments

Comments

@artpi
Copy link
Owner

artpi commented Jan 26, 2022

There is no puppeteer version for M1 macs, so it fails with

npm WARN old lockfile Error: Integrity checksum failed when using sha512: wanted sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A== but got sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==.
npm WARN old lockfile     at /Users/artpi/.nvm/versions/node/v17.0.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:145:39
npm WARN old lockfile     at async Array.<anonymous> (/Users/artpi/.nvm/versions/node/v17.0.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:741:9)
npm WARN old lockfile  Could not fetch metadata for prettier@2.0.5 Error: Integrity checksum failed when using sha512: wanted sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A== but got sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==.
npm WARN old lockfile     at /Users/artpi/.nvm/versions/node/v17.0.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:145:39
npm WARN old lockfile     at async Array.<anonymous> (/Users/artpi/.nvm/versions/node/v17.0.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:741:9) {
npm WARN old lockfile   code: 'EINTEGRITY'

The solution is to install with env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install
And download Chromium separately via this comment puppeteer/puppeteer#6622 (comment)

Then the puppeteer will have to be pointed to by command line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant