-
Notifications
You must be signed in to change notification settings - Fork 823
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
CLI V.8 is not working under M1 #10193
Comments
Hey @biller-aivy 👋 thanks for raising this! Unfortunately I am not able to reproduce on my M1 mac using Node versions 14, 16, and 17. How was Node and npm installed? |
@josefaidt after I pulled my amplify app, and updated it to v8 it is working. |
Thanks for clarifying @biller-aivy ! To clarify, is this working now? What sort of issues were you seeing prior to fixing the issue? |
@biller-aivy I'm also facing the same issue that there is no output on executing any amplify cli command, can you share how did you resolve this? Otherwise I feel like I'll have open a new issue. |
i installed the v7 and pulled my project, after that, I installed v8 |
downgrading to 7.6.26 fixed the issue for me as well. |
Hey @saif003 and @biller-aivy would y'all mind sharing a screenshot of the install and first command execution? Unfortunately I have not been able to reproduce this issue on my end using an M1 mac |
@josefaidt here you go, and when I install using following command then amplify runs as expected.
I'm using node 16.1.0, and I've installed node using asdf using following commands,
I've also tried with latest version of node directly without asdf but was still getting the same issue. |
Hey @saif003 thank you for those screenshots, and while I initially tested on Node 16.14.1/2 I downgraded to 16.1.0 to no avail Can you post a snippet from your logs at |
Hey @biller-aivy 👋 just wanted to follow-up on my previous message and see if you are able to capture logs at the time this occurs? |
Starting with Amplify v8 on OSX (M1), using the amplify upgrade command seems to be the culprit. After the upgrade, any amplify command, even "amplify -v" produces no output. I have to completely remove the package "npm remove .." and then "npm install ..." to restore normal operations. |
Hey @bc4253 did you install the CLI initially using |
Hey @biller-aivy and @bc4253 just wanted to follow-up here and see if you are still experiencing this issue? |
Chip: Apple M1 Pro
v7 seems like working
|
Hey @crzyjcky can you paste the output of running |
hi @josefaidt, after installing
|
Hey @crzyjcky I'm glad to hear that worked well! I'll mark this as a documentation issue to add this callout to our installation docs! |
I am also on OSX M1 and just ran into the no output on cli v8 issue while setting up a new machine. Downgrading to v7 worked well. It feels like requiring a rosetta install to work with a newer version of cli is a step backwards. Hoping whatever dependency in v8 that seems to require rosetta can be eliminated or updated to support m1 natively. |
I am still having issues. I originally installed some v8 version a few weeks back and all was fine until there was an upgrade. After running amplify upgrade, then amplify always return no cli output of any kind. However if I run "sudo amplify --version" or any other amplify command, it works fine. I just ran the upgrade to v8.3.0 and still have the same issue. I have not recently tried to uninstall and reinstall. last time I tried the uninstall/reinstall that did not fix my problem. I had just finished following the procedure to add a .npm-global directory, maybe that is the cause of why a fresh install doesnt work either? |
@bc4253 - did you try the step in this message above: #10193 (comment) ? Does that fix for you? |
It does not, I already have rosetta installed. the arch command returns arm64 |
Same problem found on NixOS 22.05, had to downgrade to make it work ! |
I'm on M1, installing Rosetta worked for me. Thank you @josefaidt |
The M1, arm64, is not supported. After several different installs attempts, the amplify binary every time it generates x86.
If you look at at the supported platform in the binary.ts you can see the Mac arm64 package is pointed to the x64 version.
|
Here is the workaround I used to get cli v9 working on Mac arm64 with Rosetta. Build from source. The Max node supported version is v16.
You get a working amplify.
|
Amplify CLI 10.0.0, Node 16.14.0, M1 Mac |
This worked for me as well on M2 chip |
This does not work for me on an M1 MacBook Air. The only solution is to download
No other output or backend providers shown. |
I did install with “sudo npm install -g @aws-amplify/cli” and then upgraded with “sudo amplify upgrade”. After the upgrade finishes, then any amplify command, even just “amplify -v”, immediately returns and produces no output.
My environment is Apple silicon MacBook Pro.
Brian Chojnowski
Senior Consultant
AT&T Consulting
AT&T Integrated Solutions & Consulting
930 National Parkway, Schaumburg, IL 60173
m 630.484.6422 o 630.484.6422 | ***@***.******@***.***>
From: josef ***@***.***>
Sent: Wednesday, May 4, 2022 3:55 PM
To: aws-amplify/amplify-cli ***@***.***>
Cc: CHOJNOWSKI, BRIAN ***@***.***>; Mention ***@***.***>
Subject: Re: [aws-amplify/amplify-cli] CLI V.8 is not working under M1 (Issue #10193)
Hey @bc4253<https://urldefense.com/v3/__https:/github.com/bc4253__;!!BhdT!mohOrNGpfj9HknqM_Z2stFbHoHb-4hS6s6-DI1WMMMbkOXtdLcSsfq516iJ8DAk_1tv6-q_xNkDu7KxSUs-_wok$> did you install the CLI initially using sudo by chance? After executing amplify upgrade the first command does take an excessive amount of time to respond but it should print something
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/aws-amplify/amplify-cli/issues/10193*issuecomment-1117929809__;Iw!!BhdT!mohOrNGpfj9HknqM_Z2stFbHoHb-4hS6s6-DI1WMMMbkOXtdLcSsfq516iJ8DAk_1tv6-q_xNkDu7KxSnWgY-6A$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/APG3K5YSIPVQUZSN7O2CT3DVILPYXANCNFSM5TGAC6NA__;!!BhdT!mohOrNGpfj9HknqM_Z2stFbHoHb-4hS6s6-DI1WMMMbkOXtdLcSsfq516iJ8DAk_1tv6-q_xNkDu7KxSyXbQuG0$>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
I was able to get it working by downloading I deleted the binary at Not sure why installing it via NPM was not working. I had no errors, just a dead binary with no output. I am running on a 2021 Macbook Pro 16" M1 Max, with Node 16.12.0, Amplify 10.3.1, and macOS Monterey 12.6. |
This worked for me, thanks! |
@kzetxa's suggestion didn't work for me, since it still downloads an x86 build, it fails with
@wderezin's suggestion did work for me (many thanks!) with a couple of minor additions to allow the $ git clone https://github.com/aws-amplify/amplify-cli.git
$ cd amplify-cli
$ git checkout v10.4.1 # Avoids building the dev branch but builds a release tag; update as necessary
$ yarn && yarn build # I'm using node 16 globally
$ rm ~/.amplify/bin/amplify
$ ln -s $(pwd)/packages/amplify-cli/bin/amplify ~/.amplify/bin/amplify Now you can run It's pretty frustrating that this is still required. I guess AWS expects us to brute-force the issue via Rosetta, but I haven't needed Rosetta up until now so I'd rather avoid it. |
Thanks @wderezin and @danrivett |
Thanks @danrivett and everyone! Following your suggestions I managed to build the project from source without Rosetta. I agree with @thtliife: using Rosetta doesn't seem the right way to go. I had to fix one thing, though, because I got some errors when invoking I am using Node.js v19.2.0. After checking out the desired version ( "resolutions": {
"nan": "2.17.0",
... to force the usage of the version of the nan package (https://github.com/nodejs/nan/) in which the maintainers just fixed a bug. The nan package is not directly required in the root After applying this modification, the installation and building of the project went smoothly for me. If you link the command ( export PATH="/Users/$USER/.amplify/bin:$PATH" To make the addition permanent, add the command to your shell profile file (ie Hope this helps! |
Still unable to find a better fix then above. That said, was able to build latest version of |
I started my project on an AMD chip and Just migrated to M1 chip new laptop. my current M1 laptop npm install -g @aws-amplify/cli amplify cli wasn't working at all Tried to downgrade to amplify7 amplify --version These feature flags are defined in the "amplify/cli.json" configuration file and are unknown to the currently running Amplify CLI:
This issue likely happens when the project has been pushed with a newer version of Amplify CLI, try updating to a newer version. Learn more about feature flags: https://docs.amplify.aws/cli/reference/feature-flags amplify init These feature flags are defined in the "amplify/cli.json" configuration file and are unknown to the currently running Amplify CLI:
This issue likely happens when the project has been pushed with a newer version of Amplify CLI, try updating to a newer version. Learn more about feature flags: https://docs.amplify.aws/cli/reference/feature-flags |
I followed @martip suggestd, still got the build error. |
Before opening, please confirm:
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v17.8.0
Amplify CLI Version
@newest
What operating system are you using?
macOS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Nope
Amplify Categories
Not applicable
Amplify Commands
Not applicable
Describe the bug
When I install the newest cli, the cli is VOID.
amplify --v is not return any text.
all other amplify commands too.
Expected behavior
.. do something.
Reproduction steps
reInstalled macOS today and installed the cli
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: