From cff44c090a3482f7c8fec115aef12feb884cfcc3 Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Mon, 30 Oct 2023 09:04:37 +0000 Subject: [PATCH] fix: check npm prefix folder --- yarn-project/cli/aztec-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/cli/aztec-cli b/yarn-project/cli/aztec-cli index 64e4d001fbcb..0779761553ef 100755 --- a/yarn-project/cli/aztec-cli +++ b/yarn-project/cli/aztec-cli @@ -11,7 +11,7 @@ if [[ -f "$PWD/node_modules/.bin/aztec-cli" ]]; then elif command -v npm &> /dev/null; then # next look for a global install # e.g. if user has run `npm install -g @aztec/cli` after playing with the cli in dockerized form - GLOBAL_NPM_BIN_DIR=$(npm --global bin) + GLOBAL_NPM_BIN_DIR=$(npm --global prefix)/bin if [[ -f "$GLOBAL_NPM_BIN_DIR/aztec-cli" ]]; then "$GLOBAL_NPM_BIN_DIR/aztec-cli" $@ exit 0