3
votes

Do you have any idea how to fix this? The Windows Power Shell returns the following when I type in "flutter doctor":

`The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + flutter doctor + ~~~~~~~ + CategoryInfo : ObjectNotFound: (flutter:String) [],

CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException`

4
This is a frequently asked question. The current directory isn't normally in the path in powershell. You could use .\flutter to run it.js2010

4 Answers

3
votes

Have you added the path to the flutter command to your path and logged out / restarted? You should have the following entries:

FLUTTER_ROOT: <wherever you downloaded flutter> PATH: <path> + %FLUTTER_ROOT%\bin

1
votes

The easiest possible way if you are using windows 10 is to go to

my computer

right click and choose

properties

after that from the left side you choose

Advanced System settings from there you choose the advanced tab you'll find at the bottom Environment Variables Click on it and find PATH If it doesn't exist create one if it does click on it and edit and keep the original path and add to it ; then the full directory of your flutter bin.

1
votes

Follow below steps and restart your system once it worked for me

  1. Search -> ‘env’ and select Edit environment variables for your account.

  2. Under User variables check if there is an entry called Path: If the entry exists, append the full path to flutter\bin using ; as a separator from existing values. If the entry doesn’t exist, create a new user variable named Path with the full path to flutter\bin as its value

  3. Restart System

  4. After that run this command : C:\src\flutter flutter doctor
1
votes

Add flutter/bin folder to the environment variables:

  1. On windows 10 click start, type environment variables, then click Edit System Environment variables

  2. Click Environment Variables

  3. Under User Variables, select path and click edit button

  4. Click New and browse the path to your flutter/bin folder

  5. Click OK

  6. Restart your Power Shell and run flutter commands again