Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行CDE后,我无法在dart编辑器中构建示例聚合物应用程序_Dart_Dart Pub - Fatal编程技术网

运行CDE后,我无法在dart编辑器中构建示例聚合物应用程序

运行CDE后,我无法在dart编辑器中构建示例聚合物应用程序,dart,dart-pub,Dart,Dart Pub,Dart editor与我之前开发的聚合物应用程序配合得很好。 我重新启动了,重新安装了dart编辑器,但运气不好 手动运行Pub-Get失败,也找不到文件。Evrrything在尝试CDE和designer之前工作正常。我认为在命令行界面中运行pub-cache-repair应该能够解决这个问题。谢谢,这帮助我现在可以运行演示CkickCounter,但修复完成了一部分,然后开始抱怨错误可能是暂时的,然后重试。当我再次尝试时,它说找不到pubspec.yaml。有什么方法可以删除缓存吗?有一个

Dart editor与我之前开发的聚合物应用程序配合得很好。 我重新启动了,重新安装了dart编辑器,但运气不好
手动运行Pub-Get失败,也找不到文件。Evrrything在尝试CDE和designer之前工作正常。

我认为在命令行界面中运行pub-cache-repair应该能够解决这个问题。

谢谢,这帮助我现在可以运行演示CkickCounter,但修复完成了一部分,然后开始抱怨错误可能是暂时的,然后重试。当我再次尝试时,它说找不到pubspec.yaml。有什么方法可以删除缓存吗?有一个未决问题,当pubspec.yaml丢失时,pub缓存修复会失败。在Linux系统上,您只需删除~/.pub缓存即可。我不知道其他操作系统上的路径。您应该能够通过以下packages目录中的符号链接找到答案。Gunter,谢谢您的帮助。我删除了C:\Users\Dave\AppData\Roaming\Pub\Cache\hosted\Pub.dartlang.org,其中Dave是我在Windows 8.1上的用户名,现在一切都正常了。谢谢你对我的评论
file:/C:/Users/Dave/dart/td2/build.dart
build.dart returned error code 255

Unhandled exception:
Uncaught Error: FileSystemException: Cannot open file, path = 'C:\Users\Dave\dart\td2\packages\args\args.dart' (OS Error: The system cannot find the file specified., errno = 2)
Stack Trace:
#0      _File.open.<anonymous closure> (dart:io/file_impl.dart:349)
#1      _RootZone.runUnary (dart:async/zone.dart:1151)