fvm icon indicating copy to clipboard operation
fvm copied to clipboard

fvm flutter env: bash\r: No such file or directory

Open cedteg opened this issue 1 year ago • 2 comments

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 with developer 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:

  1. Go to terminal..
  2. Run brew install fvm
  3. Run fvm global stable
  4. Run fvm use stable
  5. Run fvm flutter doctor
  6. Check...
  7. 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

cedteg avatar Aug 04 '22 14:08 cedteg

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 avatar Aug 05 '22 10:08 cedteg

@cedteg Is this problem still occurring, I believe this has been fixed on a previous release.

leoafarias avatar Sep 20 '22 17:09 leoafarias

@leoafarias problem is solved.

cedteg avatar Oct 13 '22 17:10 cedteg

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

wisnukurniawan avatar Mar 18 '23 02:03 wisnukurniawan

Fixed by install fvm flutter manually

  1. cd .fvm/flutter_sdk/bin
  2. ./flutter doctor
  3. if show error env: bash\r: No such file or directory, try sudo find . -type f -exec dos2unix {} \; for reference https://stackoverflow.com/a/63914652/5607894
  4. try ./flutter doctor again

to verify, move back to root project and type fvm flutter doctor

wisnukurniawan avatar Mar 19 '23 22:03 wisnukurniawan

  1. if show error env: bash\r: No such file or directory, try sudo 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

mx1up avatar Aug 05 '23 11:08 mx1up