Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not download Node.js from: https://nodejs.org/dist/v6.11.3/x64/node.exe: Got error code 404 from the server

When i tried build and clean my project

pom.xml

<configuration>
    <nodeVersion>v6.11.3</nodeVersion>
    <npmVersion>3.10.10</npmVersion> 
    <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
    <workingDirectory>src/main/angularDash</workingDirectory>
</configuration>

I have this error:

Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.22:install-node-and-npm (install node and npm) on project dashAngular: Could not download Node.js from: https://nodejs.org/dist/v6.11.3/x64/node.exe: Got error code 404 from the server. -> [Help 1]

like image 685
Mariam dev Avatar asked Jan 17 '26 10:01

Mariam dev


2 Answers

Older versions of frontend-maven-plugin doesn't support newer chips. Especially, I got this error in my M1 Pro based MacBook.

The solution is to upgrade the plugin to 1.11.

Answer Courtesy: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/m1-mac-cant-build-wknd-tutorial-get-quot-could-not-download-node/td-p/399462

like image 159
Sankaran Srinivasan Avatar answered Jan 20 '26 03:01

Sankaran Srinivasan


2023 UPDATE

Version 1.11.0 didn't fix to my M1 macOS. But version 1.12.1 did it!

<dependency>
    <groupId>com.github.eirslett</groupId>
    <artifactId>frontend-maven-plugin</artifactId>
    <version>1.12.1</version>
</dependency>
like image 32
Simone Colnaghi Avatar answered Jan 20 '26 02:01

Simone Colnaghi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!