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.23k stars 867 forks source link

frontent-maven-plugin with system node? #915

Closed ledhed2222 closed 4 years ago

ledhed2222 commented 4 years ago

Deep apologies if this is extremely obvious. I'm very very new to the Java ecosystem.

I'm using nvm to manage my node versions locally. I'm trying to add webpack via this plugin to an existing Java project. My system default node is v13.x.x and the version I want to use for this project is v12.x.x. I'm noticing that while the plugin is successfully installing this version of node, when it comes time to run any npm commands it's just using my system default version, causing all my npm scripts to fail.

Is there any way to specify that I want to use the bundled node version that this plugin installs? If so how?

Thanks in advance!

ledhed2222 commented 4 years ago

Wow..user error. I just hadn't installed webpack-cli in the directory I thought. Closing, my bad.