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

Installation is not supported for this architecture: arm64 #8

Closed
Lxxyx opened this issue Nov 11, 2021 · 8 comments
Closed

Installation is not supported for this architecture: arm64 #8

Lxxyx opened this issue Nov 11, 2021 · 8 comments
Labels
bug Something isn't working need-more-info Need more info on the issue to be able to diagnose

Comments

@Lxxyx
Copy link

Lxxyx commented Nov 11, 2021

Trying to install depp but get this error.

➜  📦 v2.0.0 npm install -g depp-installer
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/depp-installer
npm ERR! command failed
npm ERR! command sh -c node dist/postinstall.js install
npm ERR! /usr/local/lib/node_modules/depp-installer/dist/postinstall.js:107
npm ERR!     throw new Error("Installation is not supported for this architecture: " + process.arch);
npm ERR!           ^
npm ERR!
npm ERR! Error: Installation is not supported for this architecture: arm64
npm ERR!     at parsePackageJson (/usr/local/lib/node_modules/depp-installer/dist/postinstall.js:107:11)
npm ERR!     at Object.<anonymous> (/usr/local/lib/node_modules/depp-installer/dist/postinstall.js:161:16)
npm ERR!     at Generator.next (<anonymous>)
npm ERR!     at /usr/local/lib/node_modules/depp-installer/dist/postinstall.js:36:61
npm ERR!     at new Promise (<anonymous>)
npm ERR!     at __async (/usr/local/lib/node_modules/depp-installer/dist/postinstall.js:20:10)
npm ERR!     at Object.install (/usr/local/lib/node_modules/depp-installer/dist/postinstall.js:160:10)
npm ERR!     at Object.<anonymous> (/usr/local/lib/node_modules/depp-installer/dist/postinstall.js:212:15)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
@CryogenicPlanet
Copy link
Owner

CryogenicPlanet commented Nov 11, 2021

What OS is this? I'm guessing M1 mac? Haven't tried installing on arm chips will look into it

@CryogenicPlanet CryogenicPlanet added the bug Something isn't working label Nov 11, 2021
@Lxxyx
Copy link
Author

Lxxyx commented Nov 11, 2021

What OS is this? I'm guessing M1 mac? Haven't tried installing on arm chips will look into it

Yes. M1 mac.

@CryogenicPlanet
Copy link
Owner

Also could you get installing the package directly from go instead of through npm. This will give a better idea if the problem is with the compiled go binary or the post install script

go install github.com/cryogenicplanet/depp@latest

@CryogenicPlanet
Copy link
Owner

Hey @Lxxyx I setup a macOS Aarch64 runner and tried to install the file and it works fine, as you can see https://github.com/CryogenicPlanet/depp/runs/4202615408?check_suite_focus=true so I am going to need more info from your side if I am going to be able to diagnose this as I don't have a m1 mac to test myself

@CryogenicPlanet CryogenicPlanet added the need-more-info Need more info on the issue to be able to diagnose label Nov 14, 2021
@Lxxyx
Copy link
Author

Lxxyx commented Nov 15, 2021

Hey @Lxxyx I setup a macOS Aarch64 runner and tried to install the file and it works fine, as you can see CryogenicPlanet/depp/runs/4202615408?check_suite_focus=true so I am going to need more info from your side if I am going to be able to diagnose this as I don't have a m1 mac to test myself

Still not works when node.js version > 16. @CryogenicPlanet

Node.js support m1 mac since 16.x, this test running node.js @14.

Node.js v14 + m1 mac, works

[1/1] scripts.postinstall depp-installer@0.0.10 run "node dist/postinstall.js install", root: "/usr/local/lib/node_modules/depp-installer"
Copying the relevant binary for your platform darwin
Downloading binary from https://github.com/CryogenicPlanet/depp/releases/download/v0.0.10/depp_0.0.10_darwin_x86_64.tar.gz
Unpacked tarball
Wrote binary to out path ./bin/depp
Installed cli successfully
[1/1] scripts.postinstall depp-installer@0.0.10 finished in 46s
All packages installed (53 packages installed from npm registry, used 47s(network 1s), speed 469.24KB/s, json 49(91.11KB), tarball 401.58KB)

Node.js v14 + m1 mac, failed

[1/1] scripts.postinstall depp-installer@0.0.10 run "node dist/postinstall.js install", root: "/usr/local/lib/node_modules/depp-installer"
/usr/local/lib/node_modules/depp-installer/dist/postinstall.js:107
    throw new Error("Installation is not supported for this architecture: " + process.arch);
          ^

Error: Installation is not supported for this architecture: arm64

@CryogenicPlanet
Copy link
Owner

Also could you get installing the package directly from go instead of through npm. This will give a better idea if the problem is with the compiled go binary or the post-install script

go install github.com/cryogenicplanet/depp@latest

@Lxxyx Can you try this?

@Boromir1994
Copy link

Boromir1994 commented Nov 26, 2021

@CryogenicPlanet I did try. For me result is command not found
image
image
Node v16.13.0
npm v8.1.0

@CryogenicPlanet
Copy link
Owner

@CryogenicPlanet I did try. For me result is command not found image image Node v16.13.0 npm v8.1.0

Hey, you will need to add the go bin to your .zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-more-info Need more info on the issue to be able to diagnose
Projects
None yet
Development

No branches or pull requests

3 participants