1

When i run: flutter pub global list i get: fvm 2.4.1

but when i run fvm i get the error: Cannot find file at '..\lib\fvm\bin\fvm.exe' (C:\ProgramData\chocolatey\lib\fvm\bin\fvm.exe). This usually indicates a missing or moved file.

i have tried running some commands on the cmd: flutter pub cache clean flutter pub global deactivate fvm flutter pub global activate fvm still nothing works

Also when i locate the folder on the path above, the fvm\bin is empty

What could be the problem

  • This question is duplicate of https://stackoverflow.com/questions/76718894/cannot-find-file-at-lib-fvm-bin-fvm-exe-error-while-installing-fvm/76896582 and probably (as question includes same computer username) posted by the same user but with a different SO account !! – OMi Shah Aug 14 '23 at 06:06

1 Answers1

-1

The point is that you tried to install fvm in two ways:

  • through choco install fvm
  • through dart pub global activate fvm

Now what my recommendation is. Remove your second option with:

dart pub global deactivate fvm

and try installing this package via choco. You will also need to add this location to the environment variables in path (or the location your fvm will install to):

C:\ProgramData\chocolatey\lib\fvm\bin\
Ruble
  • 2,589
  • 3
  • 6
  • 29
  • instead of writing duplicate answers, you should redirect the user to the duplicate answer as you already answered here https://stackoverflow.com/a/76896582/5882307 ! – OMi Shah Aug 14 '23 at 06:03
  • @OMiShah Okay, thank you. But this solution is an initial assumption and may go down a different branch of development in the future. So, save your exclamation points :) – Ruble Aug 14 '23 at 06:08