2017-08-28 123 views
0

我生成一個項目使用jHipster,當我使用此命令「mvn -Pprod package」在終端中生成項目時,我得到關於節點和紗線的錯誤。明天我必須在我的演講中展示這個項目。Jhipster項目的生產服務器上的錯誤生成

這是錯誤消息:

[ERROR]未能執行目標com.github.eirslett:前端-行家-插件:1.4:安裝節點和紗(安裝節點和紗)上項目的myapp :無法提取Yarn存檔:無法提取存檔:'/home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/yarn-0.27.5./yarn-v0.27.5.tar .gz':EOFException - > [Help 1] [錯誤] [錯誤]要查看錯誤的完整堆棧跟蹤,請使用-e開關重新運行Maven。 [錯誤]使用-X開關重新運行Maven以啓用完整的調試日誌記錄。 [錯誤] [錯誤]有關錯誤和可能的解決辦法,請您仔細閱讀以下文章瞭解更多信息: [錯誤] [說明1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

請人幫我解決這個問題。

謝謝。

+0

看起來你的檔案被損壞。刪除這個文件夾,你應該可以:/home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/ – Andrei

+0

好的。 .successfull。 。非常感謝你@Andrei –

回答

0

這是解決由#1評論:

Looks like your archive got corrupted. Delete this folder and you should be ok: /home/andrew/.m2/repository/com/github/eirslett/yarn/0.27.5/

+0

非常感謝@Julien Dubois –

相關問題