I use Linux (i.e. Ubuntu 23.04) and I installed the Dart SDK with the instructions mentioned on Dart’s website. The dart command is accessible but I can not use the dartaotruntime command. The terminal says that the command is not found. What is the workaround for this issue?
2
Answers
The command dartaotruntime is no longer included in the latest Dart SDK. Instead, you can use the dart command to run your Dart code. So, to run your Dart code, use the following command:
This command will run your Dart code without any issues. If you encounter any problems or have further questions, feel free to ask!
There are an ongoing issue about the command are not on the PATH when installing the deb package for Dart: https://github.com/dart-lang/sdk/issues/49293
You can manually find the executable as
/usr/lib/dart/bin/dartaotruntime
. If you need it, I wound either recommend:/usr/lib/dart/bin/
on your PATH.Or you can just directly call it with the full PATH when needed.