Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

flutter

fvm

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

like image 771
Michael Ng'ang'a Njoroge Avatar asked Sep 16 '25 14:09

Michael Ng'ang'a Njoroge


1 Answers

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\
like image 132
Ruble Avatar answered Sep 18 '25 09:09

Ruble