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, )