Skip to content

Commit a7d3b8b

Browse files
mellowareeirslett
authored andcommitted
Update NodeInstaller.java
1 parent 2750625 commit a7d3b8b

File tree

1 file changed

+1
-1
lines changed
  • frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib

1 file changed

+1
-1
lines changed

frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NodeInstaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private void installNodeDefault() throws InstallationException {
198198
FileUtils.copyDirectory(tmpNodeModulesDir, nodeModulesDirectory);
199199
this.logger.info("Extracting NPM");
200200
// create a copy of the npm scripts next to the node executable
201-
for (String script : Arrays.asList("npm", "npm.cmd")) {
201+
for (String script : Arrays.asList("npm", "npm.cmd", "npx", "npx.cmd")) {
202202
File scriptFile = new File(npmDirectory, "bin" + File.separator + script);
203203
if (scriptFile.exists()) {
204204
File copy = new File(destinationDirectory, script);

0 commit comments

Comments
 (0)