Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to start the Dart CLI isolate (null). on mac

Tags:

flutter

dart

When I run flutter pub get, I am getting this error:

Failed to start the Dart CLI isolate
(null).
pub get failed (255; (null).)

Screenshot of the error

In flutter doctor, there is no issue.

like image 240
MD Sarfaraj Avatar asked Mar 19 '26 07:03

MD Sarfaraj


2 Answers

  1. Go to Flutter directory where you installed the Flutter
  2. Go to /bin/cache
  3. remove all the items inside the cache directory

Run flutter clean in the project root directory.

like image 160
Basil Mariano Avatar answered Mar 21 '26 20:03

Basil Mariano


  1. Delete the pub cache folder from C:\Users\{your username}\AppData\Roaming\Pub.

  2. Delete all the packages folders in your project (also in subfolders).

  3. Delete the pubspec.lock file in your project.

  4. Run pub get again from a command line or select Tools in the Dart Editor menu, and then select Pub Get.

    reference

like image 31
Ruchit Avatar answered Mar 21 '26 22:03

Ruchit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!