Reputation: 8979
Once I change the global version of fvm, the following error occurs:
$ fvm
Can't load Kernel binary: Invalid SDK hash.
/Users/lukepighetti/.pub-cache/bin/fvm: line 15: pub: command not found
Upvotes: 1
Views: 1710
Reputation: 362
Neither of the older solutions worked for me. To resolve on Mac, I had to do the following:
rm -rf ~/.pub-cache
dart pub global activate fvm
Upvotes: 0
Reputation: 8979
oh ok, this doesn't seem to be an FVM error, as it happens before running FVM.
I would try doing a dart pub global activate fvm again, and/or a dart pub cache repair.
Also, only way to avoid doing doing the cache repair every time is to use fvm per project and try to leave the global version the same.
Upvotes: 1