Skip to content

Commit

Permalink
Reposition yarn installation command
Browse files Browse the repository at this point in the history
  • Loading branch information
forefy committed Feb 16, 2024
1 parent ac5a8e2 commit 254edee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eburger/utils/installers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 254edee

Please sign in to comment.