aptana/studio3 — pull request #126 by pinnamur (2013-10-08 15:13:16+00:00)
Title: TISTUD-5434 Avoid installing npm packages globally

- Installs npm packages locally without global flag.
- On Mac : If the npm install itself is moved to .titanium folder, then it fails to query the package installation versions. However, if npm is installed to /usr/local, then it can install the npm packages to local directory such as '/Users//.titanium'. Since the npm package installs has to be access for all Studio installations and they have to persist across Studio re-installation, the location is chosen to be ('/Users//.titanium')
- On Windows : Whatever is the current working directory, local npm packages are always installed under C:\Users\. Though we are under in a different local directory, it queries and installs from the user home directory. Well, since the local npm packages manages are known to node all the time, it works well with querying the version and the installation.