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

Certain npm commands don't find package.json #901

Open nkotixwolf opened 4 years ago

nkotixwolf commented 4 years ago

"npm install" works great on compile phase but on package phase if I want to run "npm prune --production" to get rid of devDependencies it says it cannot find package.json in somePath/target directory. Why does npm install command find a package.json and get all dependencies when npm prune does not?