【问题标题】:How to install something that requires pub install using Flutter SDK?如何使用 Flutter SDK 安装需要 pub install 的东西?
【发布时间】:2020-09-06 03:16:24
【问题描述】:

我正在尝试编译https://github.com/dart-lang/protobuf/tree/master/protoc_plugin

根据自述文件,我应该运行 pub install。我有应该包含 Dart SDK 的颤振 SDK。

我试过了:

flutter pub install

Could not find a subcommand named "install" for "flutter pub".

dart pub install

Error: Error when reading 'pub': No such file or directory

pub install

/bin/sh: 1: pub: not found

如何使用flutter SDK编译它?

【问题讨论】:

    标签: flutter dart dart-pub


    【解决方案1】:

    这很奇怪,但试试flutter pub pub install

    installget 相同。不知道为什么那些文档说要使用install

    【讨论】:

      猜你喜欢
      • 2020-11-05
      • 1970-01-01
      • 2017-02-04
      • 1970-01-01
      • 1970-01-01
      • 2014-05-30
      • 2020-10-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多