Titanium Studio asking to install Alloy and CLI each time it starts

Each time I start Studio a dialog box appears telling me updates are available, and lists CLI and Alloy. After telling it to install, I enter my password and a few seconds later, in a box down in the bottom right corner, I'm told CLI and Alloy installed successfully.

No Alloy templates appear in the New Project wizard and after reading and following advice in some online material, exited Studio and re-started it, but still no templates. I do however get the CLI and Alloy updates dialog box appearing again. Arghhh.

  • I'm on Mountain Lion 10.8.2.
  • Node has been installed.
  • I've updated to Titanium Studio build:
  • I've done a "chmod 777 /usr/local/bin"

I can execute "alloy" from Terminal and get the help details displayed. Commands such as "alloy info templates" work just fine from Terminal, but for some reason, Studio seems unable to see Alloy.

Has anyone else experienced this problem and solved it? Any help would be appreciated.

— asked 3 years ago by Ray Mckaig
  • @Ray do you have NPM_CONFIG_PREFIX set in your environment? If so, you're likely running into the issue in https://jira.appcelerator.org/browse/TISTUD-2843.

    — commented 3 years ago by Michael Xia
  • That's interesting Michael. Yes, I do have it set. I'll have a closer look at this tomorrow evening.

    Thanks for the reply.

    — commented 3 years ago by Ray Mckaig
  • You're a star Michael, that was the problem. I had "export NPM_CONFIG_PREFIX=$HOME" in my .bash_profile file.

    I've comment the line out and after installing CLI and Alloy and then restarting Studio, I wasn't asked to install them again…. and….. the Alloy templates are now showing in the New Project wizard.

    I'll create a test project tomorrow and have a play. Thanks for your advice.

    — commented 3 years ago by Ray Mckaig
  • I have had issues with this titanium release … had to install from admin account

    — commented 3 years ago by Tim Alosi
  • Commenting out the "export NPM_CONFIG_PREFIX=$HOME" in my .bash_profile file worked for me also. Thanks!

    — commented 3 years ago by Vui Nguyen

0 Answers