From 85dd67805e99a42647342be3679a20bb1237836c Mon Sep 17 00:00:00 2001 From: Scott Jungling Date: Fri, 16 Feb 2024 14:59:09 -0800 Subject: [PATCH] refactor: maybe just install ng cli locally? --- .../openrewrite/codemods/migrate/angular/NodeBasedRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/codemods/migrate/angular/NodeBasedRecipe.java b/src/main/java/org/openrewrite/codemods/migrate/angular/NodeBasedRecipe.java index f5f0f35..c7a2bba 100644 --- a/src/main/java/org/openrewrite/codemods/migrate/angular/NodeBasedRecipe.java +++ b/src/main/java/org/openrewrite/codemods/migrate/angular/NodeBasedRecipe.java @@ -115,7 +115,7 @@ private void runNode(Accumulator acc, ExecutionContext ctx) { try { if (useNvmExec) { // older versions may require installing the angular cli globally to avoid issues with `npx` - runCommand(Arrays.asList("nvm-exec", "npm", "install", "--global", angularCliVersion), dir, nodeModules, ctx); + runCommand(Arrays.asList("nvm-exec", "npm", "install", angularCliVersion), dir, nodeModules, ctx); // prefix the command with `nvm-exec` to ensure the correct node version is used npmInstallCommand.add(0, "nvm-exec");