Regarding Flutter command not found

1,266 views
Skip to first unread message

rakeshl...@gmail.com

unread,
Jul 27, 2018, 8:20:15 AM7/27/18
to Flutter Dev
I have downloaded my Flutter sdk and saved in my documents on mac device .I have set my path variable .I have checked my user settings where my sdk is being saved and its "dart.flutterSdkPath": "/Users/abcd/Documents/flutter". However Flutter command runs on my root terminal but not running on VScode editor terminal.Why is that so

Rudi Floren

unread,
Jul 27, 2018, 8:22:00 AM7/27/18
to rakeshl...@gmail.com, Flutter Dev
Did you restart vscode?

<rakeshl...@gmail.com> schrieb am Fr., 27. Juli 2018 um 14:20 Uhr:
I have downloaded my Flutter sdk and saved in my documents on mac device .I have set my path variable .I have checked my user settings where my sdk is being saved and its "dart.flutterSdkPath": "/Users/abcd/Documents/flutter". However Flutter command runs on my root terminal but not running on VScode editor terminal.Why is that so

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rakesh Lahkar

unread,
Jul 27, 2018, 8:27:46 AM7/27/18
to Rudi Floren, Flutter Dev
Yes, I did. 

On 27-Jul-2018 5:51 PM, "Rudi Floren" <rudi....@gmail.com> wrote:
Did you restart vscode?

<rakeshl...@gmail.com> schrieb am Fr., 27. Juli 2018 um 14:20 Uhr:
I have downloaded my Flutter sdk and saved in my documents on mac device .I have set my path variable .I have checked my user settings where my sdk is being saved and its "dart.flutterSdkPath": "/Users/abcd/Documents/flutter". However Flutter command runs on my root terminal but not running on VScode editor terminal.Why is that so

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

Rudi Floren

unread,
Jul 27, 2018, 8:33:36 AM7/27/18
to Rakesh Lahkar, Flutter Dev
Did you set your path according to your flutter dir in your .bashrc or .zshrc?
What is the content of the Path variable in your vscode terminal? You can check that with 
# echo $PATH


Rakesh Lahkar <rakeshl...@gmail.com> schrieb am Fr., 27. Juli 2018, 14:27:
Yes, I did. 

On 27-Jul-2018 5:51 PM, "Rudi Floren" <rudi....@gmail.com> wrote:
Did you restart vscode?

<rakeshl...@gmail.com> schrieb am Fr., 27. Juli 2018 um 14:20 Uhr:
I have downloaded my Flutter sdk and saved in my documents on mac device .I have set my path variable .I have checked my user settings where my sdk is being saved and its "dart.flutterSdkPath": "/Users/abcd/Documents/flutter". However Flutter command runs on my root terminal but not running on VScode editor terminal.Why is that so

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

Rakesh Lahkar

unread,
Jul 27, 2018, 8:36:12 AM7/27/18
to Flutter Dev
YES I HAVE SET MY PATH TO MY FLUTTER DIRECTORY AND THE FOLLOWING IS THE CONTHENT OF  echo $ PATH:

echo $PATH

Documents/flutter/bin:Documents/flutter/bin:Documents/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Rudi Floren

unread,
Jul 27, 2018, 8:40:35 AM7/27/18
to Rakesh Lahkar, Flutter Dev
Your PATH is wrong. The flutter directory should be absolute. e.g. /Users/YourName/Documents/flutter/bin or ~/Documents/flutter/bin

Rudi

--
Reply all
Reply to author
Forward
0 new messages