im trying to install the get_cli
package for flutter.
install command is pub global activate get_cli
, however pub is not a global variable on my windows 10 machine.
i think i need to add variables to the system environment variables
, but i'm not sure what paths and how to call them.
this answer works for unix, so im looking for something similar for windows.
anyone got an idea?
edit: error: 'pub' is not recognized as an internal or external command, operable program or batch file.
The “Python is not recognized as an internal or external command” error is encountered in the command prompt of Windows. The error is caused when Python's executable file is not found in an environment variable as a result of the Python command in the Windows command prompt.
If you have Flutter in C:\src\flutter
, you can add path variable: C:\src\flutter\bin\cache\dart-sdk\bin
(if you have Flutter in another localization, just replace the beginning of the path analogically) and restart your command line tool (or IDE).
You can add flutter
prefix before pub
as well: flutter pub global activate get_cli
- according to flutter -h
:
flutter pub
- pass the remaining arguments to Dart's "pub" tool
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With