diff --git a/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NodeInstaller.java b/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NodeInstaller.java index 82d179b5..ff273300 100644 --- a/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NodeInstaller.java +++ b/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NodeInstaller.java @@ -198,7 +198,7 @@ private void installNodeDefault() throws InstallationException { FileUtils.copyDirectory(tmpNodeModulesDir, nodeModulesDirectory); this.logger.info("Extracting NPM"); // create a copy of the npm scripts next to the node executable - for (String script : Arrays.asList("npm", "npm.cmd")) { + for (String script : Arrays.asList("npm", "npm.cmd", "npx", "npx.cmd")) { File scriptFile = new File(npmDirectory, "bin" + File.separator + script); if (scriptFile.exists()) { File copy = new File(destinationDirectory, script);