patrick6
(Patrick Crean)
April 23, 2021, 1:15pm
1
Hi
I am following the tutorial here: Next.js Starters - Prismic
When I run the install command:
prismic theme --theme-url https://github.com/prismicio-community/slice-library-starter-next --conf sm.json
I am getting an error.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@5.5.0 install: node install.js
npm ERR! Exit status 1
I tried Node 14 and 15 with nvm.
Any ideas what could be happening here?
Fares
April 23, 2021, 2:45pm
3
Hi Patrick,
Welcome to the Prismic community.
Can you please tell us the is the Prismic CLI you are using?
Fares
Fares
April 23, 2021, 2:58pm
4
Can you please tell us what Prismic CLI command and theme you are using? this command doesn't seem to be valid, you can list you full command in a code braket.
patrick6
(Patrick Crean)
April 23, 2021, 3:58pm
5
Sorry about that. Here is the command I am running.
prismic theme --theme-url https://github.com/prismicio-community/slice-library-starter-next --conf sm.json
Fares
April 27, 2021, 3:31pm
6
Well, I've tried to reproduce this, but it is working for me as expected.
Can you try to install or compile puppeteer@5.5.0 in an empty project to see what happens? And if we get more explicit errors?
Something like
npm install puppeteer@5.5.0
patrick6
(Patrick Crean)
April 27, 2021, 4:18pm
7
Thanks Fares for testing this - are you using an Macbook Air with the M1 chip? I think that is the issue as this is what I am seeing when I try install puppeteer
npm install puppeteer@5.5.0
npm ERR! code 1
npm ERR! path /Users/patrick/Code/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! The chromium binary is not available for arm64:
Fares
April 28, 2021, 9:32am
8
Hello,
Thanks for your response; I will create an issue in our tracker regarding this, and I guess we need to create an issue in puppeteer as well if they didn't fix it yet.
Fares
April 28, 2021, 9:46am
9
Hi,
Just to let you know, I have created an issue in puppeteer project:
opened 09:39AM - 28 Apr 21 UTC
<!--
STEP 1: Are you in the right place?
- For general technical questions o… r "how to" guidance, please search StackOverflow for questions tagged "puppeteer" or create a new post.
https://stackoverflow.com/questions/tagged/puppeteer
- For issues or feature requests related to the DevTools Protocol (https://chromedevtools.github.io/devtools-protocol/), file an issue there:
https://github.com/ChromeDevTools/devtools-protocol/issues/new.
- Problem in Headless Chrome? File an issue against Chromium's issue tracker:
https://bugs.chromium.org/p/chromium/issues/entry?components=Internals%3EHeadless&blocking=705916
For issues, feature requests, or setup troubles with Puppeteer, file an issue right here!
-->
### Steps to reproduce
Simple when trying to Install puppeteer@5.5.0 such as "npm install puppeteer@5.5.0" in an empty project on an M1 MacBook you get this error:
`npm install puppeteer@5.5.0
npm ERR! code 1
npm ERR! path /Users/patrick/Code/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! The chromium binary is not available for arm64:`
**Tell us about your environment:**
* Puppeteer version: 5.5.0
* Platform / OS version: macos
* URLs (if applicable):
* Node.js version: Node 14 and 15 with nvm.
**What steps will reproduce the problem?**
_Please include code that reproduces the issue._
1.npm install puppeteer@5.5.0
2.
3.
**What is the expected result?**
install correctly
**What happens instead?**
`npm install puppeteer@5.5.0
npm ERR! code 1
npm ERR! path /Users/patrick/Code/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! The chromium binary is not available for arm64:`
patrick6
(Patrick Crean)
April 28, 2021, 10:38am
10
OK thanks for the update Fares and for raising the ticket.
Fares
April 28, 2021, 12:35pm
11
Hi @patrick6
In fact, there is already an issue for this, but not sure if it is released already
committed 09:35AM - 08 Jan 21 UTC
Issue: #6495, #6634, #6641, #6614
And it seems that there is already a work-around
I will also check if we can upgrade Slice Machine to v9.0.0
Fares
May 18, 2021, 3:37pm
13
A quick update: our dev team is planning to remove puppeteer from the modules, I will let you know once I get a confirmation.
Fares
closed , flag & select 'Something Else' to reopen.
July 29, 2021, 2:23pm
14
This thread has been closed due to inactivity. Flag to reopen .
Phil
(Phil Snow)
August 9, 2021, 2:56pm
18
For anyone with a mac m1 (new arm Apple chip), if you wanna install npm modules and it states that it’s not compatible with ARM architecture (node-sass is not compatible for instance), you can remove all your node modules and install them again this way:
npm install --target_arch=x64
It will use rosetta2 and make them compatible as if you were on x64 architecture
2 Likes