Issue with Wrangler Installation - MacOS

Hello, I am trying to install Cloudflare’s Wrangler to my VS Code. When I go into my VS Code and use

npm i @cloudflare/wrangler -g

all goes well with the installation.

However, when I attempt to use wrangler as a command it tells me zsh: command not found: wrangler .

How can I fix this?

Thank you.