Skip to content

Commit

Permalink
Update NodeInstaller.java
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored and eirslett committed Sep 9, 2024
1 parent 2750625 commit a7d3b8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a7d3b8b

Please sign in to comment.