Skip to content

Commit

Permalink
fix: check npm prefix folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 30, 2023
1 parent 3d09388 commit cff44c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/cli/aztec-cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cff44c0

Please sign in to comment.