Appium installation issue

Well if you install Appium from GUI, its path is
/Applications/Appium.app

If we install from npm , it should default to
/usr/local/bin/appium

However in my case , when I try to install with npm , its getting installed to
/Users/admin/.npm-global/lib/node_modules/appium/node_modules

Command :- npm install -g [email protected]

Please help why is it installing to above path and not the default one.

Thanks

In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package.

https://docs.npmjs.com/cli/install