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

Is it possible to set a project-level npm to prevent installing every time? #1010

Open neorclynn opened 2 years ago

neorclynn commented 2 years ago

I understand the purpose to install a locally npm, to prevent the interfere from global environment. But for every single project, the npm won't change much. It's convenient to create a install npm just in the first time, and it doesn't need to install it further because it takes so long for every build.

eirslett commented 2 years ago

This is actually the default behavior of the plugin - it only installs in your project npm the first time. Unless you delete it between runs.