3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

flutter projectでpub runコマンドが打てない時の対処法

Posted at

flutterプロジェクトで pub run コマンドを打とうとした時、次のようなエラーが出ることがあります。

% pub run intl_translation:extract_to_arb --output-dir=lib lib/messages.dart
Flutter is not available. If this is a Flutter project, make sure to always run
pub through the "flutter" executable.

dartのコードを見るとすぐにわかるのですが、 FLUTTER_ROOT の環境変数がないとエラーを吐くようになっているので設定しましょう。

以上。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?