eirslett / frontend-maven-plugin

"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.
Apache License 2.0
4.25k stars 871 forks source link

How can it use installDirectory properties when executing npm install #937

Open winhkey opened 4 years ago

winhkey commented 4 years ago

installDirectory has been setted with target

[INFO] --- frontend-maven-plugin:1.10.3:install-node-and-npm (install node and npm) @ mf-pc --- [INFO] Installing node version v12.19.0 [INFO] Copying node binary from d:\repository\com\github\eirslett\node\12.19.0\node-12.19.0-win-x64.exe to D:\svn\mf\trunk\mf\mf-pc\target\node\node.exe [INFO] Installed node locally. [INFO] Installing npm version 6.14.8 [INFO] Unpacking d:\repository\com\github\eirslett\npm\6.14.8\npm-6.14.8.tar.gz into D:\svn\mf\trunk\mf\mf-pc\target\node\node_modules [INFO] Installed npm locally. [INFO] [INFO] --- frontend-maven-plugin:1.10.3:npm (npm install) @ mf-pc --- [INFO] Running 'npm install' in D:\svn\mf\trunk\mf\mf-pc [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17.233 s [INFO] Finished at: 2020-10-14T10:37:38+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.10.3:npm (npm install) on project mf-pc: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "D:\svn\mf\trunk\mf\mf-pc\node\node.exe" (in directory "D:\svn\mf\trunk\mf\mf-pc"): CreateProcess error=2, 系统找不到指定的文件。 -> [Help 1]

ramkumar-equinix commented 3 years ago

download one time to your Download folder and then disable the install execution task. https://nodejs.org/dist/latest/ you can also download fron this