gpt4 book ai didi

dart - 发布安装失败,包 "html5lib"没有 pubspec.yaml 文件

转载 作者:行者123 更新时间:2023-12-03 03:03:27 26 4
gpt4 key购买 nike

我创建了一个简单的项目。这是我的 pubspec.yaml

name:  testapp
description: test application
dependencies:
html5lib: 0.0.12

现在我得到这个错误
Pub install fail, Resolving dependencies...
Package "html5lib" doesn't have a pubspec.yaml file.

最佳答案

我猜你在windows上? Dart 似乎在项目中的包文件夹和包的存储位置之间设置了快捷方式(硬目录链接?)。因此,如果您从 Eclipse 中删除包目录,它将丢弃存储实际包的文件夹。

在 Windows 7 上,该文件夹是:

C:\Users\[user]\AppData\Roaming\Pub\



继续删除其内容并运行 pub install再次。

如果您开始收到有关 UnitTest 或其他核心库的错误,您可能需要重新下载 Dark-SDK(或 dart 编辑器)并替换它。

关于dart - 发布安装失败,包 "html5lib"没有 pubspec.yaml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12927265/

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