element icon indicating copy to clipboard operation
element copied to clipboard

Can't use Element on Apple M1

Open demetrio812 opened this issue 4 years ago • 2 comments

Hello, at the moment I'm not able to use the cli on Apple M1, I've tried to use brew from a Rosetta 2 terminal and it installed it, however when I try to run init it gives this error:

element init        
> INFO UPDATE AVAILABLE The latest stable version of element-cli is 1.5.1
> INFO Get it by running brew upgrade element
Initializing '/Users/denny/workspaceNW/fit-kab-dao-api/element_load_testing'
? A URL to use in the generated test script. (https://challenge.flood.io) > Error! An unexpected empty rejection occurred
 rejection: null
this is a bug, please report it here https://github.com/flood-io/element/issues/new?template=bug_report.md

that as after a fresh install, tried to do brew upgrade element but same result (and same request to update).

Then I've tried with npm and I've got an issue with chromium not being available for arm64 (but would be good to have an initial support for Element even without browser):

npm i -g element-cli
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest
npm ERR! code 1
npm ERR! path /Users/denny/.nvm/versions/node/v15.5.0/lib/node_modules/element-cli/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: 
npm ERR! If you are on Ubuntu, you can install with: 
npm ERR! 
npm ERR!  apt-get install chromium-browser
npm ERR! 
npm ERR! /Users/denny/.nvm/versions/node/v15.5.0/lib/node_modules/element-cli/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
npm ERR!             throw new Error();
npm ERR!             ^
npm ERR! 
npm ERR! Error
npm ERR!     at /Users/denny/.nvm/versions/node/v15.5.0/lib/node_modules/element-cli/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
npm ERR!     at FSReqCallback.oncomplete (node:fs:199:21)

Any workaround?

Thanks

demetrio812 avatar Jan 23 '21 17:01 demetrio812

I'm also having this issue 😕

JulienMelissas avatar Apr 15 '22 05:04 JulienMelissas

I am also having this issue.

justinfiore avatar Sep 15 '22 17:09 justinfiore