繁体   English   中英

为什么maven install使用npm会给出此错误?

[英]Why does maven install give this error with npm?

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

[错误]无法在项目前端上执行目标com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm(安装节点和npm):无法提取npm存档:无法提取存档: 'C:\\ Users \\ User.m2 \\ repository \\ com \\ github \\ eirslett \\ npm \\ 5.6.0 \\ npm-5.6.0.tar.gz':EOFException-> [帮助1]

我在google和stackoverflow上查看过,但没有找到任何解决方法。

我该怎么办?

(Spring后端和Angular前端)

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM