weixin_39790738
weixin_39790738
2021-01-09 03:26

Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project tdpco-web-app-ui: Could not download Node.js: Got error code 404 from the server. -> [Help 1]

Reactor Summary: [INFO] [INFO] tdpco-web-app ...................................... SUCCESS [ 0.308 s] [INFO] tdpco-web-app-model ................................ SUCCESS [ 1.013 s] [INFO] tdpco-web-app-service .............................. SUCCESS [ 1.901 s] [INFO] tdpco-web-app-ui ................................... FAILURE [ 1.429 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.414 s [INFO] Finished at: 2019-10-05T16:45:25+03:00 [INFO] Final Memory: 41M/362M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project tdpco-web-app-ui: Could not download Node.js: Got error code 404 from the server. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :tdpco-web-app-ui

Process finished with exit code 1 please find the pom file below...in attachments

pom-file.zip

该提问来源于开源项目:eirslett/frontend-maven-plugin

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39953244 weixin_39953244 3月前

    I was getting this same error. It turned out to be a typo in the version of npm that I specified.

    点赞 评论 复制链接分享
  • weixin_39621456 weixin_39621456 3月前

    Maven tries to download nodejs from location https://nodejs.org/dist/v4.0.0/x64/node.exe But the folder structure to download for windows 64 bit OS is, in fact, http://nodejs.org/dist/v4.0.0/win-x64/node.exe.

    win-x64 added in URL instead of just x64

    点赞 评论 复制链接分享
  • weixin_39604092 weixin_39604092 3月前

    If anyone has solved the problem please help

    点赞 评论 复制链接分享
  • weixin_39837607 weixin_39837607 3月前

    i tred to change the version to 1.8.0 and its working .

    点赞 评论 复制链接分享
  • weixin_39936310 weixin_39936310 3月前

    Any new insights? I have the same problem with version 1.10.0

    点赞 评论 复制链接分享
  • weixin_39988476 weixin_39988476 3月前

    Facing the same issue.

    点赞 评论 复制链接分享
  • weixin_39846664 weixin_39846664 3月前

    Maven tries to download nodejs from location https://nodejs.org/dist/v4.0.0/x64/node.exe But the folder structure to download for windows 64 bit OS is, in fact, http://nodejs.org/dist/v4.0.0/win-x64/node.exe.

    Node v4.0.0 is very old. It's not supported by this plugin anymore. Try using v12.18.3, which is the latest long-term-support version.

    点赞 评论 复制链接分享

为你推荐