java - 为什么 maven install npm 会出现这个错误?

标签 java angular maven

我合并了两个分支,之后我收到以下错误:

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project frontend: Could not extract the npm archive: Could not extract archive: 'C:\Users\User.m2\repository\com\github\eirslett\npm\5.6.0\npm-5.6.0.tar.gz': EOFException -> [Help 1]

我查看了 google 和 stackoverflow,但没有找到任何可以修复该问题的内容。

我应该尝试什么?

(Spring 后端和 Angular 前端)

最佳答案

只需从本地存储库中删除此文件夹,然后再次运行构建:

**delete => C:\Users\User.m2\repository\com\github\eirslett**

似乎 npm tar.gz 在下载过程中已损坏。

关于java - 为什么 maven install npm 会出现这个错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54581188/

相关文章:

java - 在 JUnit/Spring 测试类中使用辅助类

javascript - Angular:仅对 html 表单的某些部分启用表单输入

html - ng2-datepicker 选项不起作用

tomcat - Maven tomcat 插件 - 添加额外的类路径

java - maven ant regex 插入 xml 文本

java - 使用 google_checks 时,Checkstyle Maven 插件执行不会因错误而失败

java - 循环->数组输出

Java程序双缓冲但仍然闪烁,一半的时间

Javadoc 文档就地呈现。可以在 IDE 中看到 pretty-print 文档吗?

html - 如何创建带有 Angular 数组的表行?