gpt4 book ai didi

dart - pub install dart-web-components 失败

转载 作者:行者123 更新时间:2023-12-03 18:37:53 25 4
gpt4 key购买 nike

在 dart-web-components 上运行 pub install 会出现错误:

Pub install fail, HttpParserException: Connection closed before full header was received

/dart-web-components/build.dart --changed=packages\args\args.dart --changed=packages\args\src\utils.dart --changed=packages\logging\...
Failed with error code 255
Unable to open file: C:/dartapps/dart-web-components/packages/web_components/component_build.dart'file:///C:/dartapps/dart-web-components/build.dart': Error: line 8 pos 1: library handler failed

导入 'package:web_components/component_build.dart';
^

在 build.dart 文件中有一个字符串

import 'package:web_components/component_build.dart';

编辑器显示错误

Cannot find referenced source: package:web_components/component_build.dart    

component_build.dart 包含错误

Cannot find referenced source: package:args/args.dart
Cannot find referenced source: package:web_components/dwc.dart

最佳答案

我解决了这个问题。 Cache 文件夹 (Pub) 似乎已损坏。

我已经删除了文件夹缓存:

C:\Users\<UserName>\AppData\Roaming\Pub



然后我运行 pub install从命令行,它的工作原理。

我的操作系统是 Windows 7。

关于dart - pub install dart-web-components 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12847031/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com