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
The point is that you tried to install fvm in two ways:
choco install fvm
dart pub global activate fvm
Now what my recommendation is to remove your second option with:
and try installing this package via
choco
. You will also need to add this location to the environment variables inpath
(or the location your fvm will install to):