【问题标题】:command not found but found when i drag and drop [duplicate]命令未找到但在我拖放时找到[重复]
【发布时间】:2020-02-16 08:15:06
【问题描述】:

我在flutter目录下运行flutter命令,但是提示找不到命令

root/korra:/Desktop/flutter/bin# flutter  
bash: flutter: command not found

但如果我将颤振拖放到终端,整个路径将在单引号下并运行所有内容

root@Korra:~# '/root/Desktop/flutter/bin/flutter' 
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
????
Manage your Flutter app development.

Common commands:

  flutter create <output directory>
    Create a new Flutter project in the specified directory.

  flutter run [options]
    Run your Flutter application on an attached device or in an emulator.


Run "flutter help <command>" for more information about a command.
Run "flutter help -v" for verbose help output, including less commonly used
options.

这也发生在其他文件上

【问题讨论】:

    标签: linux ubuntu unix terminal kali-linux


    【解决方案1】:

    您需要在命令前加上./ 才能在当前目录中运行命令,因此:./flutter。

    【讨论】:

      猜你喜欢
      • 2016-05-14
      • 2020-10-01
      • 1970-01-01
      • 2017-07-06
      • 2021-05-11
      • 2013-03-06
      • 1970-01-01
      • 2018-01-31
      • 2012-12-26
      相关资源
      最近更新 更多