Reputation: 71
Flutter path is correct but still unable to be recognized by the windows command prompt. Looked everywhere asked anyone who used flutter still unable to figure out the problem.
Tried suggestions made on other questions similar to this still no luck and followed the tutorials on installing flutter did not work.
Upvotes: 1
Views: 5902
Reputation: 335
For windows user make sure to include C:\Windows\System32 in your user PATH variable,this prevents the flutter command prompt from flashing when you click it.
Upvotes: 0
Reputation: 301
Adding the following things in the path solved the issue for me
C:\Program Files\Git\bin
C:\Program Files\Git\cmd
C:\Windows\System32
C:\Windows\SysWOW64\WindowsPowerShell\v1.0
C:\src\flutter\bin
Upvotes: 0
Reputation: 3261
For Windows users (Windows 10)
env
Environment Variables..
User variables
, select Path
then click Edit
New
then past this line C:\src\flutter\bin
(supposing this is where 'bin' directory of Flutter is located on your machine)Restart is required to apply changes.
Upvotes: 6
Reputation: 40433
The command prompt you're using appears to be using elevated permissions and therefore will have the "system" environment variables but not your user ones necessarily. Try with a non-elevated command prompt... which you should be using anyways. Only use an elevated command prompt when absolutely needed as otherwise you could delete important things by accident. Also, you can run echo %PATH% to see what is actually in the path in the command prompt you're using.
If you want to use flutter across multiple users or need to use an elevated command prompt for some reason, add the path to flutter/bin to the system environment variables instead.
Upvotes: 2