Studio should install npm packages locally into a folder accessible to the user without sudo permissions (to avoid problems described at TISTUD-5428)
In order to accomplish this -
1) Currently we set global flag for any npm package installation. Mark all actions with npm packages without global to make them local installations.
2) The npm packages can not be installed/queries in the .titanium or .npm folders under home directory. The folder name can not start with dot.
3) Remove the check for alias bin files in the /usr/local directory - as the local installation will not create symlink files in /usr/local directory.
4) Cleaning the cache sometimes requires sudo permissions - so we still need to prompt for password. However, use this password only for cleaning the cache.