简体   繁体   English

flutter 命令不从终端执行,需要永远

[英]flutter commands doesn't execute from terminal, takes forever

I'm new to flutter. I installed VS, dart and flutter inside.我是flutter的新手,我在里面安装了VS,dart和flutter。 Right now I'm following tutorials and learning stuff.现在我正在学习教程和学习东西。 Everything was okey, I was working from dart terminal.一切正常,我在 dart 终端工作。 After I changed channel to "dev" (flutter channel dev) and tried to run app, flutter commands takes forever now, I mean when i press enter in terminal, it receives my command but does nothing, just blinking cursor. Only way out is "ctrl+c", to stop the process.在我将频道更改为“dev”(flutter channel dev)并尝试运行应用程序后,flutter 命令现在需要永远,我的意思是当我在终端中按 enter 时,它收到我的命令但什么都不做,只是闪烁 cursor。唯一的出路是“ctrl+c”,停止进程。 So, I even cannot changes channel back.所以,我什至不能把频道改回来。 Even when i Type command "flutter channels", it hangs... I'm working on windows即使我输入命令“flutter channels”,它也会挂起...我正在处理 windows

I tried restarting VS, PC, reinstalling dart and flutter. non of them works for me.我尝试重新启动 VS、PC,重新安装 dart 和 flutter。它们都不适合我。

在此处输入图像描述

I'm new to flutter.我是扑的新手。 I installed VS, dart and flutter inside.我在里面安装了 VS、dart 和 flutter。 Right now I'm following tutorials and learning stuff.现在我正在学习教程和学习东西。 Everything was okey, I was working from dart terminal.一切正常,我在 dart 终端工作。 After I changed channel to "dev" (flutter channel dev) and tried to run app, flutter commands takes forever now, I mean when i press enter in terminal, it receives my command but does nothing, just blinking cursor.在我将频道更改为“dev”(flutter channel dev)并尝试运行应用程序后,flutter 命令现在需要永远执行,我的意思是当我在终端中按 Enter 时,它收到我的命令但什么也不做,只是闪烁光标。 Only way out is "ctrl+c", to stop the process.唯一的出路是“ctrl+c”,停止进程。 So, I even cannot changes channel back.所以,我什至不能换回频道。 Even when i Type command "flutter channels", it hangs... I'm working on windows即使当我输入命令“颤振通道”时,它也会挂起......我在 Windows 上工作

I tried restarting VS, PC, reinstalling dart and flutter.我尝试重新启动 VS、PC,重新安装 dart 和 flutter。 non of them works for me.他们都不适合我。

在此处输入图片说明

I'm new to flutter.我是扑的新手。 I installed VS, dart and flutter inside.我在里面安装了 VS、dart 和 flutter。 Right now I'm following tutorials and learning stuff.现在我正在学习教程和学习东西。 Everything was okey, I was working from dart terminal.一切正常,我在 dart 终端工作。 After I changed channel to "dev" (flutter channel dev) and tried to run app, flutter commands takes forever now, I mean when i press enter in terminal, it receives my command but does nothing, just blinking cursor.在我将频道更改为“dev”(flutter channel dev)并尝试运行应用程序后,flutter 命令现在需要永远执行,我的意思是当我在终端中按 Enter 时,它收到我的命令但什么也不做,只是闪烁光标。 Only way out is "ctrl+c", to stop the process.唯一的出路是“ctrl+c”,停止进程。 So, I even cannot changes channel back.所以,我什至不能换回频道。 Even when i Type command "flutter channels", it hangs... I'm working on windows即使当我输入命令“颤振通道”时,它也会挂起......我在 Windows 上工作

I tried restarting VS, PC, reinstalling dart and flutter.我尝试重新启动 VS、PC,重新安装 dart 和 flutter。 non of them works for me.他们都不适合我。

在此处输入图片说明

Place the flutter directory outside the C:\Program Files worked for me.将 flutter 目录放在为我工作的 C:\Program Files 之外。

Check folder and directory ownership and rights on fluter sdk directory.检查 fluter sdk 目录的文件夹和目录所有权和权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM