已失效的 pub 命令和功能

从 Dart 2 开始,pub 不再支持 pub buildpub serve 以及变换器。它们均由 build_runner 工具中的 build system 替代。

有关在 Dart 2 中构建和提供应用的更多信息请查阅:

获取从 Dart 1 切换到 Dart 2 的帮助请查阅: