/bin/sh: dart: command not found

一般是dart sdk环境配置问题
在配置文件里添加
export DART_HOME= /Users/xx/Documents/flutter/bin/cache/dart-sdk/bin // sdk路径
export PATH="{PATH}"
如果你在bash_profile里面配置了还报错,应该去.zshrc里添加,再重启vscode,这时应该不会报错了

你可能感兴趣的:(/bin/sh: dart: command not found)