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

Can't install on Mac M1 / arm64 #35

Open
andrepasteur opened this issue Jun 8, 2023 · 0 comments
Open

Can't install on Mac M1 / arm64 #35

andrepasteur opened this issue Jun 8, 2023 · 0 comments

Comments

@andrepasteur
Copy link

Hello,

The SDK is currently not compatible with Mac computers with M1 chip.

When running npm install --save outscale-api on a Mac M1, the following error is returned:

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/andre.tran/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm ERR! npm WARN deprecated [email protected]: < 19.4.0 is no longer supported
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /Users/andre.tran/.npm/_cacache/tmp/git-cloneZpyCOu/node_modules/puppeteer
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node install.js
npm ERR! npm ERR! The chromium binary is not available for arm64: 
npm ERR! npm ERR! If you are on Ubuntu, you can install with: 
npm ERR! npm ERR! 
npm ERR! npm ERR!  apt-get install chromium-browser
npm ERR! npm ERR! 
npm ERR! npm ERR! /Users/andre.tran/.npm/_cacache/tmp/git-cloneZpyCOu/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
npm ERR! npm ERR!             throw new Error();
npm ERR! npm ERR!             ^
npm ERR! npm ERR! 
npm ERR! npm ERR! Error
npm ERR! npm ERR!     at /Users/andre.tran/.npm/_cacache/tmp/git-cloneZpyCOu/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
npm ERR! npm ERR!     at FSReqCallback.oncomplete (node:fs:208:21)
npm ERR! npm ERR! 
npm ERR! npm ERR! Node.js v18.16.0
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /Users/andre.tran/.npm/_logs/2023-06-08T14_47_03_535Z-debug-0.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/andre.tran/.npm/_logs/2023-06-08T14_47_00_807Z-debug-0.log

Specifically the problem seems to concern puppeteer which seems like it tries and fails to install chromium or something. puppeteer is a dependency of aws4fetch, which is itself a dependency of this osc-sdk-js.

Some links that may or may not be useful:

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

No branches or pull requests

1 participant