From 01cc586e20248b62ac9039bfbe7a9bf10268e0c7 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Mon, 13 Feb 2023 13:42:59 +0530 Subject: [PATCH] fix: Use yarn to figure out bin path instead of npm Npm v9 doesn't have bin anymore. This causes run-ui-tests to fail refs: - https://docs.npmjs.com/cli/v8/commands/npm-bin - https://yarnpkg.com/cli/bin --- frappe/commands/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/commands/utils.py b/frappe/commands/utils.py index 5ec0b54828..f41cca3c57 100644 --- a/frappe/commands/utils.py +++ b/frappe/commands/utils.py @@ -908,7 +908,7 @@ def run_ui_tests( os.chdir(app_base_path) - node_bin = subprocess.getoutput("npm bin") + node_bin = subprocess.getoutput("yarn bin") cypress_path = f"{node_bin}/cypress" drag_drop_plugin_path = f"{node_bin}/../@4tw/cypress-drag-drop" real_events_plugin_path = f"{node_bin}/../cypress-real-events"