Intellij Idea: sbt 刷新 FetchError$DownloadingArtifacts npm-4.2.0-sources.jar:未找到

3
当我在使用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(我知道它很老,但是新版本可能也会发生这种情况)

如何解决这个问题?

1个回答

9

这方面目前有一个(未解决)问题

我不太确定为什么会发生这种情况,可能这篇stackoverflow回答可以解释为什么会发生这种情况。

但是总的来说,在那个线程上有一篇对我有效的答案。

...
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.
...

希望能帮到其他人 :)

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接