From a7d3b8b26e50d0259c3038fa67530c8d8892f982 Mon Sep 17 00:00:00 2001 From: Melloware Date: Tue, 20 Aug 2024 07:42:56 -0400 Subject: [PATCH] Update NodeInstaller.java --- .../eirslett/maven/plugins/frontend/lib/NodeInstaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 82d179b59..ff273300e 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);