I am facing a strange problem when I am installing Titanium in MAC:
when I Tried to execute this command
sudo npm install -g NodeJS titanium alloy
I've got always:
sudo: npm: command not found
I am not an expert with MAC, so what's the solution?
Thanks in advance?
I'm afraid that you are in a chicken and the egg situation.
Keep in mind that
npmis usually installed with NodeJS; although you can install it as a standalone product. But since you are not very Mac proficient, we'll assume that it's not installed on your machine at all.
There are different ways you can go about this. But the easiest way would be to simply let Titanium Studio do the heavy lifting for you. In TiStudio, simply go to the Help -> Check for updates menu. From there, you will be shown a dialog window that will allow you to install, NodeJS, Alloy, the Command Line Interface (CLI) or any oher tools that may come handy in the future. Thus rendering the
npmcommand call unnecessary.
npm comes with the nodejs installer.