在使用 Intellij idea 和 sbt 时,出现错误:
[error] (updateSbtClassifiers) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/org/webjars/npm/4.2.0/npm-4.2.0-sources.jar: not found: https://repo1.maven.org/maven2/org/webjars/npm/4.2.0/npm-4.2.0-sources.jar
Intellij Idea 版本:2018.1(是的,我知道它很旧,但可能也发生在较新的版本上)
如何解决?
最佳答案
有一个(当前)open issue为了那个原因。
我不太确定为什么会这样,可能是 this stackoverflow answer会解释为什么会发生这种情况。
但总而言之,在该线程上有一个对我有用的答案。
...
I think I solved the issue. In IntelliJ IDEA, go to
Preferences => Build, Execution, Deployment =>
Build Tools => sbt => sbt projects.
Untick "Library sources" & "sbt sources".
I tested it on 2019.3.4 & 2020.1. Both versions work correctly.
...
希望这对其他人有帮助:)
关于java - Intellij Idea : sbt refresh FetchError$DownloadingArtifacts npm-4. 2.0-sources.jar: 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61812492/
相关文章:
c - 使用 for 循环初始化一个数组,并将最终数组元素的值作为条件(在 C 中)
django - 将 Django 连接到 Microsoft SQL 数据库
javascript - 在 includes() 中使用 "OR"运算符来试验字符串中是否存在任何
javascript - 如何使用 nestfastify 编写来自 nestjs 异常过滤器的响应
google-app-engine - gcloud app deploy - 更新服务默认值失败,
amazon-web-services - 如何替换 AWS Auto Scaling 组中的特定实
swift - 在 Vapor 中使用原始 sql 返回条目总数
scala - 通过方法类型参数分配给类型成员的值打破了类型等价