Skip to content

Commit

Permalink
Merge pull request #1007 from vzhyhunou/dev
Browse files Browse the repository at this point in the history
Copying npx scripts for embedded node
  • Loading branch information
eirslett authored Oct 31, 2021
2 parents 429d572 + 912352d commit 7625e2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private void copyNpmScripts() throws InstallationException{
File nodeModulesDirectory = new File(installDirectory, "node_modules");
File npmDirectory = new File(nodeModulesDirectory, "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(installDirectory, script);
Expand Down

0 comments on commit 7625e2d

Please sign in to comment.