From c5afd450f5e3bedbb6e9d25989f26e2e48a0b305 Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Mon, 5 Oct 2026 15:16:16 +0500 Subject: [PATCH] fix: remove --workspace flag (invalid for global npm), keep env var --- npm_install.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/npm_install.py b/npm_install.py index 0e84701..7cff2bb 100644 --- a/npm_install.py +++ b/npm_install.py @@ -2234,8 +2234,9 @@ def _build_frontend(src_frontend: Path, dest_frontend: Path): try: env = os.environ.copy() env["NPM_CONFIG_WORKSPACES"] = "" + env["NPM_CONFIG_WORKSPACE"] = "" subprocess.run( - ["npm", "install", "-g", "@yarnpkg/cli", "--workspace="], + ["npm", "install", "-g", "@yarnpkg/cli"], check=False, cwd="/tmp", env=env, ) @@ -2256,8 +2257,9 @@ def _build_frontend(src_frontend: Path, dest_frontend: Path): try: env = os.environ.copy() env["NPM_CONFIG_WORKSPACES"] = "" + env["NPM_CONFIG_WORKSPACE"] = "" subprocess.run( - ["npm", "install", "-g", "yarn@1", "--workspace="], + ["npm", "install", "-g", "yarn@1"], check=False, cwd="/tmp", env=env, ) except Exception: @@ -2268,8 +2270,9 @@ def _build_frontend(src_frontend: Path, dest_frontend: Path): # Uninstall any global yarn 4.x first env = os.environ.copy() env["NPM_CONFIG_WORKSPACES"] = "" + env["NPM_CONFIG_WORKSPACE"] = "" subprocess.run( - ["npm", "uninstall", "-g", "@yarnpkg/cli", "--workspace="], + ["npm", "uninstall", "-g", "@yarnpkg/cli"], check=False, cwd="/tmp", env=env, )