Dart を学習していますが、問題が見つかりました。
プロジェクトの依存関係として、GitHub リポジトリからwidget.dartパッケージを追加したいと考えています。しかし、pub.dartlang.org には、廃止された Web UI を必要とする非常に古いバージョンがあります。GitHub リポジトリから pub を取得する方法 (および pub.dartlang.org のようにインストールする方法) を知っている人はいますか?
Windows と Dart Editor で GitHub を使用しています。
更新:依存関係に追加して、従来の方法で「pub get」を実行しようとしました:
dependencies:
widget:
git: git@github.com:dart-lang/widget.dart.git
しかし、それはこのエラーを返します:
--- 30.1.2014 15:35:27 Running pub get ... ---
Pub get failed, [1] Resolving dependencies...
Cannot get widget from Git (git@github.com:dart-lang/widget.dart.git).
Please ensure Git is correctly installed.
e:\b\build\slave\dart-editor-win-stable\build\dart\sdk\lib\_internal\pub\lib\src\source\git.dart 42 GitSource.downloadToSystemCache.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run
pub --trace 'get'
and include the results in a bug report on http://dartbug.com/new.
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **