From 254edeed3d9de87ca8d7df1e640c418bb6a00d53 Mon Sep 17 00:00:00 2001 From: forefy Date: Fri, 16 Feb 2024 10:49:19 +0200 Subject: [PATCH] Reposition yarn installation command --- eburger/utils/installers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eburger/utils/installers.py b/eburger/utils/installers.py index bbadb6d..cd136a9 100644 --- a/eburger/utils/installers.py +++ b/eburger/utils/installers.py @@ -121,11 +121,6 @@ def install_hardhat_if_not_found(): shell=True, live_output=True, ) - run_command( - construct_sourceable_nvm_string("npm install -g yarn"), - shell=True, - live_output=True, - ) run_command( construct_sourceable_nvm_string("npx -v"), shell=True, @@ -139,6 +134,11 @@ def install_hardhat_if_not_found(): try: if os.path.isfile(os.path.join(settings.project_root, "yarn.lock")): + run_command( + construct_sourceable_nvm_string("npm install -g yarn"), + shell=True, + live_output=True, + ) run_command( construct_sourceable_nvm_string("yarn add --dev hardhat"), directory=settings.project_root,