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

Error: No binary available for arch 'undefined' (M1 Mac) #960

Closed
captaincole opened this issue Feb 8, 2022 · 2 comments
Closed

Error: No binary available for arch 'undefined' (M1 Mac) #960

captaincole opened this issue Feb 8, 2022 · 2 comments

Comments

@captaincole
Copy link
Contributor

When trying to run npm install orbit-db@0.28.0 I ran into this error related to go-ipfs

npm ERR! command sh -c node src/post-install.js
npm ERR! https://dist.ipfs.io/go-ipfs/versions
npm ERR! Error: No binary available for arch 'undefined'
npm ERR!     at getDownloadURL (/Users/andrew/dweb/typed-orbit/node_modules/go-ipfs/src/download.js:162:11)
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm ERR!     at async download (/Users/andrew/dweb/typed-orbit/node_modules/go-ipfs/src/download.js:178:15)
npm ERR!     at async module.exports (/Users/andrew/dweb/typed-orbit/node_modules/go-ipfs/src/download.js:251:13)

To solve this, I was able to set an environment variable (Which I found via this this issue in npm-go-ipfs)

export TARGET_ARCH=arm64
@captaincole
Copy link
Contributor Author

Asked and answered my own question above, but wanted to leave a trail for the next M1 Mac soul who runs into this issue.

@codetit4n
Copy link

it worked thankyou man @captaincole

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

2 participants