如何解决此导入安全帽问题

发布于 2025-01-14 22:37:54 字数 1430 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

も让我眼熟你 2025-01-21 22:37:54

我也有这个bug;我把它放在我拥有的 hardhat 教程存储库中。

对我来说,问题来自于一个yarn.lock文件,当yarn指定从github安装包时,该文件没有指定提交哈希。

我吹走了 (rm'd) 我的 yarn.lock 文件(在根目录和 ./hardhat 中)并重新安装,然后它工作了。

I also had this bug; I had it in a hardhat tutorial repo I had.

For me the problem came from a yarn.lock file that didn't specify a commit hash when yarn was specifying to install a package from github.

I blew away (rm'd) my yarn.lock files (in both the root dir and ./hardhat) and reinstalled, and it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文