fvm
fvm copied to clipboard
fvm flutter env: bash\r: No such file or directory
Before creating a bug report please make check the following
- [x] You have read our FAQ
- [x] If you have used flutter. Please install correctly, run
pub cache repair
. Close the terminal and try again. - [x] If you are on Windows. Make sure you are running the terminal as
administrator
or withdeveloper
permissions. - [x] Run
fvm doctor
if possible and add the output to the issue.
Describe the bug fvm flutter can not execute
To Reproduce Steps to reproduce the behavior:
- Go to terminal..
- Run
brew install fvm
- Run
fvm global stable
- Run
fvm use stable
- Run
fvm flutter doctor
- Check...
- See error env: bash\r: No such file or directory
Expected behavior flutter doctor content
Logs
Please provide the verbose logs by running --verbose
after the command.
env: bash\r: No such file or directory
Desktop (please complete the following information):
- Mac OS 12.5 MacBook Pro M1 Pro
- FVM Version: 2.4.1
Additional context fvm doctor --verbose
No FVM config found: /Users/ctegenkamp Fvm will run the version in your PATH env: /Users/ctegenkamp/fvm/default/bin/flutter
Configured env paths:
Flutter: /Users/ctegenkamp/fvm/default/bin/flutter
Dart: /opt/homebrew/Cellar/dart/2.17.6/libexec/bin/dart
FVM_HOME: not set
It seems like fvm is pulling the wrong architecture on my M1 Mac
If I manually replace the version with the arm64 version provided by flutter.dev it works
@cedteg Is this problem still occurring, I believe this has been fixed on a previous release.
@leoafarias problem is solved.
hi @leoafarias I facing the same issue, but Im using Mac intel and already using flutter x64, when run fvm install
or fvm flutter doctor
I got env: bash\r: No such file or directory
.
Another error when I run fvm use 3.0.3
I got error
Not a Flutter project. Run this FVM command at the root of a Flutter project or use --force to bypass this.
Working fine if I run fvm --version
or fvm --help
Fixed by install fvm flutter
manually
-
cd .fvm/flutter_sdk/bin
-
./flutter doctor
- if show error
env: bash\r: No such file or directory
, trysudo find . -type f -exec dos2unix {} \;
for reference https://stackoverflow.com/a/63914652/5607894 - try
./flutter doctor
again
to verify, move back to root project and type fvm flutter doctor
- if show error
env: bash\r: No such file or directory
, trysudo find . -type f -exec dos2unix {} \;
for reference https://stackoverflow.com/a/63914652/5607894
this works, but is probably caused by a wrong git checkout wrt line endings.
for example, on mac, set:
git config --global core.autocrlf input
then fvm remove and reinstall --> works