Home > other >  "dart: Command not found" when running Dart commands in Codemagic
"dart: Command not found" when running Dart commands in Codemagic

Time:11-10

when I try to run Dart commands (even simple dart --version) in Codemagic it fails with an error saying dart: command not found.

CodePudding user response:

to overcome the issue you need to update your scripts to run $FLUTTER_ROOT/bin/dart instead.

There is no separate Dart SDK on Codemagic build machines, only Flutter SDK and you can use the Dart version shipped with Flutter.

  • Related