proper platform_context.execute for Windows/MinGW;
authorwenzelm
Mon, 08 Sep 2025 23:55:00 +0200
changeset 83116 e0c85cb6b924
parent 83115 ee6a594f0e7e
child 83117 d25d58cc131e
proper platform_context.execute for Windows/MinGW;
src/Pure/System/nodejs.scala
--- a/src/Pure/System/nodejs.scala	Mon Sep 08 23:03:31 2025 +0200
+++ b/src/Pure/System/nodejs.scala	Mon Sep 08 23:55:00 2025 +0200
@@ -79,11 +79,11 @@
 
     def install(name: String, production: Boolean = false): Unit = {
       progress.echo("Installing " + name + " ...")
-      Isabelle_System.bash(
+      platform_context.execute(path,
         Library.make_lines(
           path_setup,
-          "npm install --global " + if_proper(production, "--production ") + Bash.string(name)),
-        cwd = path).check
+          "npm install --global " + if_proper(production, "--production ") + Bash.string(name)
+        )).check
     }
   }