0

I have tried to active the flutter pub like this:

 fvm use 3.7.11 

and run command:

> pub get
zsh: command not found: pub

I also tried to active global like this:

> fvm global 3.7.11
Flutter "3.7.11" has been set as global
However your "flutter" path current points to:

.
to use global Flutter SDK through FVM you should change it to:

/Users/John/fvm/default/bin

how to set the fvm flutter sdk path. I have tried like this:

export PATH="/Users/John/fvm/default/bin:$PATH"
spark
  • 663
  • 1
  • 5
  • 18

1 Answers1

0

pub is not the valid command. You should use flutter pub <command>

As per fvm doc, you just have to prefix the command with fvm

Example:

flutter pub get

becomes

fvm flutter pub get
Sujan Gainju
  • 4,273
  • 2
  • 14
  • 34