【发布时间】:2022-09-27 17:03:10
【问题描述】:
我对编码很陌生并且遇到了这个问题,无法理解如何解决它,我看到过类似的问题,但是我无法理解其中的大多数。我试过添加 该路径几次,甚至重新安装了Vscode它似乎没有解决。
我写的代码::
import \'dart:io\';
void main() {
print(\"Enter your name\");
var name = stdin.readLineSync();
print(\"The name is $name\");
}
我得到的错误是:
Jack : The term \'Jack\' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Jack
+ ~~~~
+ CategoryInfo : ObjectNotFound: (Jack:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我努力了:
1:再次设置路径
2:重新安装vs代码。
任何类型的信息都会真正有帮助,因此我无法真正进步。
-
你能发布你的完整代码吗?
-
那是整个代码还是我不理解其中的一部分。
标签: flutter dart visual-studio-code