Skip to content

Conversation

@fredericrous
Copy link
Contributor

I am getting the following error when I run yarn build on mac m1

❯ npx yarn build                                                                                                                                                        20:13:54
yarn run v1.22.19
$ yarn --no-progress && rm -rf dist/* && grunt && yarn build:es6 && yarn build:es5 && yarn doc
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > karma-typescript@4.1.1" has incorrect peer dependency "karma@1 || 2 || 3 || 4".
[4/4] 🔨  Building fresh packages...
error /Users/frederic.rousseau/Developer/Perso/gridstack.js/node_modules/puppeteer: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/frederic.rousseau/Developer/Perso/gridstack.js/node_modules/puppeteer
Output:
The chromium binary is not available for arm64: 
If you are on Ubuntu, you can install with: 

 apt-get install chromium-browser

/Users/frederic.rousseau/Developer/Perso/gridstack.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112

I can fix it with:

brew install chromium
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true                                                                                                                          
export PUPPETEER_EXECUTABLE_PATH=`which chromium`

However, puppeteer is not used and seems to have been introduced by mistake with commit 181dbcc8

@adumesny
Copy link
Member

actually puppeteer was there before 181dbcc, but you're right doesn't look like it's used. thanks.

@adumesny adumesny merged commit d4ed994 into gridstack:master Jan 23, 2023
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

Successfully merging this pull request may close these issues.

2 participants