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

dart: command not found error while using rps package #774

Open
msarkrish opened this issue Aug 30, 2024 Discussed in #770 · 0 comments
Open

dart: command not found error while using rps package #774

msarkrish opened this issue Aug 30, 2024 Discussed in #770 · 0 comments

Comments

@msarkrish
Copy link

Discussed in #770

Originally posted by msarkrish August 28, 2024
I'm using rps for running scripts which is defined in pubspec.yaml file.

I'm using a mac system and i haven't added the flutter path to zshrc file.

Inside Android Studio settings, I have mentioned the specific flutter version. I use fvm use command to specify specific version for each project and using fvm flutter command to run the application from command prompt.

Everything is working fine, till i started to use rps. After defined the scripts in pubspec yaml file, i try to run it using rps command but it is not working and it saying that

/Users/username/.pub-cache/bin/rps: line 8: dart: command not found

If I add the flutter path to zshrc file then rps command is working. But If i add specific flutter version to zshrc file then if i run another flutter project then also it will take the same version.

Is there any way to resolve this?

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

1 participant