【发布时间】:2018-06-20 02:23:53
【问题描述】:
当我以 root 用户身份运行 flutter 命令时,它没有运行,但显示类似错误
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
????
Doctor summary (to see all details, run flutter doctor -v):
Dart_NewStringFromUTF8 expects argument 'str' to be valid UTF-8.
我不明白我做错了什么。请帮助我。
我正在尝试在安装了 android studio 的 Kali Linux 中运行颤振。 我是否需要以非 root 用户身份运行颤振,如果是,那么我需要为另一个用户安装所有内容。有没有办法做到这一点?
【问题讨论】:
-
通常强烈建议不要在 Linux 上以 root 身份运行应用程序,因此更改它可能是个好主意。
-
但我在 root 中运行所有东西
-
我明白了,但这是个坏主意。我希望你没有出于安全原因使用 Linux :D
-
那么我需要以非root用户身份运行flutter,这是我需要做的吗
-
您应该以非 root 用户身份运行所有内容,期望一些特定的管理任务,例如更改某些配置或安装需要以 root 身份安装的应用程序。否则就不要使用root。我不知道短期的解决方法。