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

[BUG]: Got zsh error when running fluttergen command #584

Open
2 tasks done
kevin-do-zimplistic opened this issue Oct 8, 2024 · 6 comments
Open
2 tasks done

[BUG]: Got zsh error when running fluttergen command #584

kevin-do-zimplistic opened this issue Oct 8, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@kevin-do-zimplistic
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Version

5.8.0

Command type

Dart command

What happened?

After I installed fluttergen, I got error when running the command in terminal. It's an zsh issue. I already searched the issue and the answers all recommend me to install Rosetta, which isn't viable because I use an Intel Mac, not an M1/M2 Mac

Relevant a pubspec.yaml.

No response

Relevant log output

zsh: bad CPU type in executable: fluttergen

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kevin-do-zimplistic kevin-do-zimplistic added the bug Something isn't working label Oct 8, 2024
@AlexV525
Copy link
Member

AlexV525 commented Oct 9, 2024

Did you use a correct architecture version of Dart SDK?

@mllrr96
Copy link

mllrr96 commented Nov 4, 2024

Were you able to solve the problem ? I have same issue, running intel Mac and getting the same error, flutter and dart are working perfectly fine

@AlexV525
Copy link
Member

Where did you install fluttergen from? There are many ways that can installs fluttergen.

@mllrr96
Copy link

mllrr96 commented Nov 10, 2024

Where did you install fluttergen from? There are many ways that can installs fluttergen.

Installed it using Homebrew, the dart pub method didn't work (it would activate it but I can't run fluttergen command (I get no such command error)

@AlexV525
Copy link
Member

I saw the same issue using the Homebrew version on my Intel Mac.

I get no such command error

You need to set up the PATH for the Pub cache. https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path

@mllrr96
Copy link

mllrr96 commented Nov 11, 2024

Thank you, after adding pub cache to PATH it works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@wasabeef @AlexV525 @mllrr96 @kevin-do-zimplistic and others