'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]
Solution 1:[1]
Configure below URL directly to download node
https://nodejs.org/dist/v6.11.3/win-x64/node.exe
Or if you replace version with v0.9.9 it will work
Solution 2:[2]
This solution worked for me
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v10.16.3</nodeVersion>
<npmVersion>6.11.3</npmVersion>
<nodeDownloadRoot>http://nodejs.org/dist/</nodeDownloadRoot>
<npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>
</configuration>
</execution>
I replace the nodeDownloadRoot and npmDownloadRoot to http
instead of https
Solution 3:[3]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | |
Solution 3 | Sankaran Srinivasan |