-
Notifications
You must be signed in to change notification settings - Fork 340
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
Crash on M1 Mac when calling many commands like login, link, etc. #1800
Comments
Hi @MarcoZehe, thank you for reporting this issue. Does the command |
Hi @erezrokah , thanks for the reply! That command gives me the following output:
I originally installed Node and NVM via the installer from nodes.org, but I think later, when I got Homebrew running on the M1 Mac, it Tok over the installation and management of Node. Anyway the latest update to Node to v15.6 was done via Homebrew. |
Thanks again @MarcoZehe that helps. |
No, since those versions didn't support the M1 yet, I had to go for the latest 15.x. And Netlify-CLI 2.69 was the initial version installed on this machine, and that one worked. Then some time later came an update, which I did, but didn't immediately use it afterwards. Now as I wanted to debug a build problem locally, I found the crash over the weekend. I tried installing Netlify-CLI both through npm as well as Homebrew, with no difference. As it appears: I'm stuck. |
I think what updated in the meantime as well was Node from V15.5.1 to 15.6.0. I believe v15.5.0 was the initial version I installed onto this M1 Mac, and 15.5.1 came out early January around the time I was experimenting with the CLI for the first time. And the initial version I got was 2.69. And 2.70 came out shortly after. |
Does reverting to |
I just had the same idea. Unfortunately, 2.69 now crashes with a similar stack trace. |
Are you able to run other Node.js programs? Can you verify you're running the latest version of |
Yes, I can run Eleventy to build a site, for example. And Homebrew is definitely 2.7.5, I only installed it on this Mac after its installation script no longer complained that it needed Rosetta 2. In fact, I don't even have brew at /usr/local/bin, so I couldn't even dump the package from there as the follow-up comment suggests. |
Thanks for the additional information @MarcoZehe.
Is that correct? |
Essentially yes. |
@erezrokah You may be interested in the following issue which was filed yesterday by @andreialecu: nodejs/node#37061. I am on 11.2 RC2 as well, and this seems to be a deciding factor. |
Hi @erezrokah! I'm also having the same problem, documented in detail here. The issue seemed to resolve itself for @MarcoZehe, but I'm still stuck. |
Thank you for the additional context @reecebguida. I'm tracking the Node.js issue and haven't seen a simple workaround yet. I recommend posting the dependencies and Node.js versions you're using in nodejs/node#37061 to see if someone can help. A possible workaround is to deploy from a CI service (GitHub Actions, Netlify, etc.) by running |
@erezrokah Thanks for the update and recommendation! I'm using v15.7.0 but don't know how to figure out what dependencies I'm using. I'm a newbie and my Googling to answer this question has proven unsuccessful. I'm getting I've been getting a lot of zsh and $ related errors earlier on as I've tried to solve this the past couple days. If you have time, would you please help me understand how to do that before I take this to nodejs/node#37061? Thanks! |
You can try via https://github.com/tabrindle/envinfo. e.g. |
Thanks for getting back to me @erezrokah! I tried that and it looks like I'm getting another zsh error...Any ideas? If not, would it be proper etiquette to open a new discussion for this issue and link it back to this one? |
Same issue here. When running
|
Per nodejs/node#37061 (comment) this should be fixed in Node.js |
So Node.js |
Confirming that it's fixed @erezrokah. Thank you! |
I was able to working around it, I use bash rather than zsh, and I use node 16 and not NVM, it works for me. |
Describe the bug
Netlify-cli crashes with many commands. Only simple commands like "help" work.
To Reproduce
Steps to reproduce the behavior:
Netlify login
.Configuration
Not applicable, I don't even get as far as this becoming relevant.
Expected behavior
No crash, I should be able to log in.
CLI Output
Additional context
Worked a few weeks ago, on the same M1 machine, but stopped working when I tried it again yesterday. Also updating from 2.7 to 3.4.2 didn't help. Neither did uninstalling, reinstalling, clearing both the Library cache and Preference Netlify folder nor the .netlify folder in my home directory.
The CLI is completely dysfunctional ATM.
The text was updated successfully, but these errors were encountered: