Appium installation path default vs user directory query

Dear All,

There are 2 places appium gets installed with npm with global flag

Option 1:

/usr/local/bin/appium

Option 2:

/Users/userName/.npm-packages/lib/node_modules/appium/build/lib/main.js

can anyone clarify why appium is getting installed at different directory with the same command ?

Thanks,
Vikram

Sorry, but this is all about installing packages per user and shared - this is the way the linux filesystem works “usr” is where all “shared” executables live, nothing unusual here. How, exactly is this causing you to not be able to use the tool in a way you expected to?