Problem with installing any app via NPM
Try it by providing full path, like /Applications/some_folder/appium-doctor to launch this app. It looks like system is not able to locate the binary 'appium-doctor'.
If it works then you can add that $path in .bash_profile.