1. Flutter
  2. XTech

[Solved] ’flutter’ is not recognized as an internal or external command

In this post, we are going to show how to fix ‘flutter’ is not recognized as an internal or external command error in Windows OS. In PowerShell, the error may look like below:

flutter'' is not recognized as an internal or external command,operable program or batch file.

flutter : 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.
1. First get the location where Flutter SDK. 

First, you need to locate the Flutter SDK folder in your files. If you do not have Flutter SDK on your local computer, download Flutter SKD from its official website. Here, our SDK is located at C:\Users\username\Documents\flutter_sdk\flutter . You have to edit the PATH Environment variable and add new path with “bin/”. For example: C:\Users\username\Documents\flutter_sdk\flutter\bin

2. Go to My Computer Properties > Advance System Setting > Environment Variables

Go to this path and edit the PATH variable and add a new path of your Flutter SDK with “bin\” folder. For example: C:\Users\username\Documents\flutter_sdk\flutter\bin

Save the changes and restart your terminal and hit the command below:

flutter doctor

The output will look like below:


FLUTTER ERROR
FLUTTER SDK

[Solved] ’flutter’ is not recognized as an internal or external command

https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-6406136908234185&output=html&h=280&slotname=3598037842&adk=3891248006&adf=3902029177&pi=t.ma~as.3598037842&w=789&fwrn=4&fwrnh=100&lmt=1653093629&rafmt=1&psa=0&format=789×280&url=https%3A%2F%2Fwww.fluttercampus.com%2Fguide%2F200%2Fflutter-is-not-recognized-as-an-internal-or-external-command%2F&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&wgl=1&uach=WyJXaW5kb3dzIiwiOC4wLjAiLCJ4ODYiLCIiLCIxMDEuMC40OTUxLjY3IixbXSxudWxsLG51bGwsIjY0IixbWyIgTm90IEE7QnJhbmQiLCI5OS4wLjAuMCJdLFsiQ2hyb21pdW0iLCIxMDEuMC40OTUxLjY3Il0sWyJHb29nbGUgQ2hyb21lIiwiMTAxLjAuNDk1MS42NyJdXSxmYWxzZV0.&dt=1653093627957&bpp=3&bdt=4871&idt=1897&shv=r20220518&mjsv=m202205170101&ptt=9&saldr=aa&abxe=1&prev_fmts=0x0%2C162x600&nras=1&correlator=5324865293392&frm=20&pv=1&ga_vid=821755856.1653093630&ga_sid=1653093630&ga_hid=42741488&ga_fc=0&u_tz=-420&u_his=3&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&dmc=4&adx=339&ady=180&biw=1583&bih=1070&scr_x=0&scr_y=0&eid=44759876%2C44759927%2C44759842%2C31065545%2C31067678&oid=2&pvsid=2111948726571678&pem=278&tmod=1951554143&uas=0&nvt=1&ref=https%3A%2F%2Fwww.google.com%2F&eae=0&fc=1920&brdim=0%2C0%2C0%2C0%2C1600%2C0%2C1600%2C1200%2C1600%2C1070&vis=1&rsz=%7C%7CoeE%7C&abl=CS&pfx=0&fu=128&bc=31&ifi=3&uci=a!3&fsb=1&xpc=RUDcFiqhaU&p=https%3A//www.fluttercampus.com&dtd=1906

In this post, we are going to show how to fix ‘flutter’ is not recognized as an internal or external command error in Windows OS. In PowerShell, the error may look like below: 

flutter : 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.

This error happens when Flutter is not installed correctly in your OS. To solve this issue Follow the following methods.

 1. First get the location where Flutter SDK. 

First, you need to locate the Flutter SDK folder in your files. If you do not have Flutter SDK on your local computer, download Flutter SKD from its official website. Here, our SDK is located at C:\Users\username\Documents\flutter_sdk\flutter . You have to edit the PATH Environment variable and add new path with “bin/”. For example: C:\Users\username\Documents\flutter_sdk\flutter\binhttps://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-6406136908234185&output=html&h=280&slotname=9564578414&adk=3077380049&adf=2237468206&pi=t.ma~as.9564578414&w=789&fwrn=4&fwrnh=100&lmt=1653093629&rafmt=1&psa=0&format=789×280&url=https%3A%2F%2Fwww.fluttercampus.com%2Fguide%2F200%2Fflutter-is-not-recognized-as-an-internal-or-external-command%2F&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&wgl=1&uach=WyJXaW5kb3dzIiwiOC4wLjAiLCJ4ODYiLCIiLCIxMDEuMC40OTUxLjY3IixbXSxudWxsLG51bGwsIjY0IixbWyIgTm90IEE7QnJhbmQiLCI5OS4wLjAuMCJdLFsiQ2hyb21pdW0iLCIxMDEuMC40OTUxLjY3Il0sWyJHb29nbGUgQ2hyb21lIiwiMTAxLjAuNDk1MS42NyJdXSxmYWxzZV0.&dt=1653093627960&bpp=4&bdt=4874&idt=1919&shv=r20220518&mjsv=m202205170101&ptt=9&saldr=aa&abxe=1&prev_fmts=0x0%2C162x600%2C789x280&nras=1&correlator=5324865293392&frm=20&pv=1&ga_vid=821755856.1653093630&ga_sid=1653093630&ga_hid=42741488&ga_fc=0&u_tz=-420&u_his=3&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&dmc=4&adx=339&ady=959&biw=1583&bih=1070&scr_x=0&scr_y=0&eid=44759876%2C44759927%2C44759842%2C31065545%2C31067678&oid=2&pvsid=2111948726571678&pem=278&tmod=1951554143&uas=0&nvt=1&ref=https%3A%2F%2Fwww.google.com%2F&eae=0&fc=1920&brdim=0%2C0%2C0%2C0%2C1600%2C0%2C1600%2C1200%2C1600%2C1070&vis=1&rsz=%7C%7CoeE%7C&abl=CS&pfx=0&fu=128&bc=31&ifi=4&uci=a!4&fsb=1&xpc=GTdw1k8QDg&p=https%3A//www.fluttercampus.com&dtd=1926

 2. Go to My Computer Properties > Advance System Setting > Environment Variables

Go to this path and edit the PATH variable and add a new path of your Flutter SDK with “bin\” folder. For example: C:\Users\username\Documents\flutter_sdk\flutter\bin

Save the changes and restart your terminal and hit the command below:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.22000.318], locale en-US)
.
.
.
more output