I'm trying out alloy and installed node via homebrew and then ran the npm installing alloy via the command: npm install alloy -g
I am getting no error when i run the npm install.
I then create a new mobile project and try to run command "alloy new" as the documentation suggests (http://projects.appcelerator.com/alloy/docs/Alloy-bootstrap/index.html) and I get the error: alloy: command not found
Am I missing something
3 Answers
Accepted Answer
the full command should be
sudo npm install -g alloy
after which you should be able to run which alloy to find alloy and alloy --version to confirm its version.
Turns out I need to add it to the .profile
export PATH="$PATH:/usr/local/share/npm/bin"
Restarted terminal and it worked!
this worked for me, but i had to create the .profile file in my home directory (Mac OSX Mountain Lion) and added 1 line to it (without quotes as shown in the answer above): PATH=$PATH:/usr/local/bin/
Your Answer
Think you can help? Login to answer this question!