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]
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
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With