<p>If you are unable to run Pub Commands after installing dart sdk, the probably you are missing the below steps. Please follow the below instructions to get it fixed. Add the below 2 Environment variable</p> <ol> <li>%APPDATA%\Pub\Cache\bin - Verify if the path has got stagehand.exe file.2) C:\src\flutter\bin\cache\dart-sdk\bin - Verify if the path has got the dart.exe file. Most of you must be already aware of what I'm going to do with this. Below is the screenshot of how your environmental variable is going to look.  Click on System.3) On Left-hand side, click on Advanced system settings.4) Go to Advanced Tab.5) Click on Environment Variable button.6) Select Path from the top list and Edit.7) Click New again and key in the Paths. Repeat it twice. That's it. Now you will be able to run the Pub Commands on your Windows machine.</li> </ol> <p>Thanks,Srikanth</p>
Dart: Unable to run Pub Commands on Windows
This Article is posted by seven.srikanth at 3/4/2019 7:27:19 PM
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter
Tags:
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter