"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
I am trying to build a jhipster web app with windows 10, however, when I try the 'mvnw' command, the following error occurs:
[INFO] --- frontend-maven-plugin:1.7.6:install-node-and-npm (install node and npm) @ test-jhipster --- [INFO] Node v10.16.0 is already installed. [INFO] Installing npm version 6.9.0 [INFO] Unpacking C:\Users\01704931\.m2\repository\com\github\eirslett\npm\6.9.0\npm-6.9.0.tar.gz into c:\Users\01704931\Desktop\test\test_jhipster\node\node_modules [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21.759 s [INFO] Finished at: 2020-06-18T17:30:57+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:install-node-and-npm (install node and npm) on project test-jhipster: Could not extract the npm archive: Could not extract archive: 'C:\Users\01704931\.m2\repository\com\github\eirslett\npm\6.9.0\npm-6.9.0.tar.gz': Expanding package/package.json would create file outside of c:\Users\01704931\Desktop\test\test_jhipster\node\node_modules -> [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
I am trying to build a jhipster web app with windows 10, however, when I try the 'mvnw' command, the following error occurs:
[INFO] --- frontend-maven-plugin:1.7.6:install-node-and-npm (install node and npm) @ test-jhipster --- [INFO] Node v10.16.0 is already installed. [INFO] Installing npm version 6.9.0 [INFO] Unpacking C:\Users\01704931\.m2\repository\com\github\eirslett\npm\6.9.0\npm-6.9.0.tar.gz into c:\Users\01704931\Desktop\test\test_jhipster\node\node_modules [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21.759 s [INFO] Finished at: 2020-06-18T17:30:57+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:install-node-and-npm (install node and npm) on project test-jhipster: Could not extract the npm archive: Could not extract archive: 'C:\Users\01704931\.m2\repository\com\github\eirslett\npm\6.9.0\npm-6.9.0.tar.gz': Expanding package/package.json would create file outside of c:\Users\01704931\Desktop\test\test_jhipster\node\node_modules -> [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
npm -v: 6.14.4 node -v: v12.18.0 mvn --version: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: C:\Program Files\apache-maven-3.6.3\bin.. Java version: 11.0.7, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.7
How can I fix this?