简体   繁体   中英

Why does maven install give this error with npm?

I did a merge of two branches and just after that I get the following error:

[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]

I looked on google and stackoverflow but didn't find anything that fixes it.

What should I try?

(Spring back-end with Angular front-end)

Just delete this folder from your local repository, and run your build again:

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

It seems that npm tar.gz was corrupted during the download.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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