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

You must Login before you can answer or comment on any questions.

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: 3.0.0.201212131639.
  • 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 1 year ago by Ray Mckaig
5 Comments
  • @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 1 year 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 1 year 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 1 year ago by Ray Mckaig

  • Show 2 more comments

Your Answer

Think you can help? Login to answer this question!