'can't install get_cli flutter
I want to install get_cli but when running the command below, error is found
flutter pub global activate get_cli
the error
Warning: Executable "get" runs "bin/get.dart", which was not found in get_cli.
Warning: Executable "getx" runs "bin/get.dart", which was not found in get_cli.
I have entered the path below to the environment
export PATH="$PATH":"$HOME/.pub-cache/bin"
Solution 1:[1]
You can downgrade to 1.6.0 with
dart pub global deactivate get_cli
dart pub global activate get_cli 1.6.
Solution 2:[2]
dart pub global activate get_cli
Solution 3:[3]
Explanation of error occurred due to this reason=>
// to install get_cli 1.6.0 version for proper working instead of get_cli^1.7.1
//first of all deactivate get, getx version of 1.7.1 then install get_cli ^1.6.0
Do the steps
step=1> flutter pub global deactivate get
Step=2> flutter pub global deactivate gets
step=3> dart pub global activate get_cli ^1.6.0
//this will surely help you if you follow these steps
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Bhavin D |
Solution 2 | tva3777 |
Solution 3 | Community |