首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在mac M1上使用前端maven插件构建失败:无法下载Node.js

在mac M1上使用前端maven插件构建失败:无法下载Node.js
EN

Stack Overflow用户
提问于 2022-09-28 13:50:39
回答 1查看 219关注 0票数 0

frontend-maven-plugin尝试下载一个不存在的节点文件。

当我查看https://nodejs.org/dist/v10.15.3时,我只能看到一个名为node-v10.15.3-darwin-x64.tar.gz的文件

代码语言:javascript
复制
[INFO] --- frontend-maven-plugin:1.7.5:install-node-and-npm (install node and npm) @ oauth-ui-authorization-code-angular-zuul ---
[INFO] Installing node version v10.15.3
[INFO] Downloading https://nodejs.org/dist/v10.15.3/node-v10.15.3-darwin-arm64.tar.gz to /Users/me/.m2/repository/com/github/eirslett/node/10.15.3/node-10.15.3-darwin-arm64.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] mymodule 2.2.6.RELEASE FAILURE [  4.536 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  36.930 s
[INFO] Finished at: 2022-09-28T14:28:09+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:install-node-and-npm (install node and npm) on project mymodule: Could not download Node.js: Got error code 404 from the server. -> [Help 1]

错误

EN

回答 1

Stack Overflow用户

发布于 2022-09-28 13:50:39

这是frontend-maven-plugin中的一个bug。升级到当前版本应该会有所帮助:

代码语言:javascript
复制
<plugin>
    <groupId>com.github.eirslett</groupId>
    <artifactId>frontend-maven-plugin</artifactId>
    <version>1.12.1</version>
    ...

这得益于:

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73882620

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档