Invalid argument(s: A directory corresponding to fileSystemPath /Users/user/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build could not be found

Solution:

It seems like the new 2.9.2 release doesn’t have the required build folder. You can try fixing it by running this in the terminal:

dart pub global activate devtools -v 2.8.0

which downgrades the version to 2.8.0 (that works fine). Found answer onĀ github