Expand my Community achievements bar.

SOLVED

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:install-node-and-npm (install node and npm) on project aem-toolsinstitucional-project.ui.frontend:

Avatar

Level 1

 
hello,
I'm trying to run the mvn install command and this error appears,
my machine is a mackbook with m1 chip

 

[INFO] --- frontend-maven-plugin:1.11.0:install-node-and-npm (install node and npm) @ aem-toolsinstitucional-project.ui.frontend ---

[INFO] Installing node version v16.17.0

[INFO] Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-darwin-x64.tar.gz to /Users/marco/.m2/repository/com/github/eirslett/node/16.17.0/node-16.17.0-darwin-x64.tar.gz

[INFO] No proxies configured

[INFO] No proxy was configured, downloading directly

[INFO] Unpacking /Users/marco/.m2/repository/com/github/eirslett/node/16.17.0/node-16.17.0-darwin-x64.tar.gz into /Users/marco/Desktop/RI/project/ui.frontend/node/tmp

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for TOOLS INSTITUCIONAL 0.0.1-SNAPSHOT:

[INFO]

[INFO]project ................................ SUCCESS [  0.592 s]

[INFO]project - Core ......................... SUCCESS [ 10.416 s]

[INFO]project - UI Frontend .................. FAILURE [  6.387 s]

[INFO]project  - Repository Structure Package . SKIPPED

[INFO]project - UI apps ...................... SKIPPED

[INFO]project - UI content ................... SKIPPED

[INFO]project - UI config .................... SKIPPED

[INFO]project - All .......................... SKIPPED

[INFO]project - Integration Tests ............ SKIPPED

[INFO]project - Dispatcher ................... SKIPPED

[INFO] com.adobe.cq.cloud.testing.ui.cypress - UI Tests ... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  21.101 s

[INFO] Finished at: 2024-06-20T18:16:10-03:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:install-node-and-npm (install node and npm) on project aem-toolsinstitucional-project.ui.frontend: Could not extract the Node archive: Could not extract archive: '/Users/marco/.m2/repository/com/github/eirslett/node/16.17.0/node-16.17.0-darwin-x64.tar.gz': Input is not in the .gz format -> [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 <goals> -rf :aem-toolsinstitucional-project.ui.frontend

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ElvisRo,

 

Couple of suggestions here - 

  1. Manually delete the npm and node folders in .m2\repository\com\github\eirslett\ and then re-run the build
  2. Could you replace the .tar.gz file with a .exe file? (for windows)
    The issue is with the extracting the archive. Replacing the archive with executable might help
  3. If both the steps fail can you run the build with -X switch to enable full debug logging and share the logs?

Hope this helps! 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @ElvisRo,

 

Couple of suggestions here - 

  1. Manually delete the npm and node folders in .m2\repository\com\github\eirslett\ and then re-run the build
  2. Could you replace the .tar.gz file with a .exe file? (for windows)
    The issue is with the extracting the archive. Replacing the archive with executable might help
  3. If both the steps fail can you run the build with -X switch to enable full debug logging and share the logs?

Hope this helps!