Description
I tried to downgrade CLI from version 3.2.0 to 3.1.2 and came across a problem. It would install 3.2.0 over and over again no matter what method I tried. I tried uninstalling 3.2.0 and getting fresh install of 3.1.2 using
sudo npm install -g titanium
I tried uninstalling 3.2.0 and cleaning the cache and getting a fresh install of 3.1.2 using
sudo npm cache clean
sudo npm install -g titanium
Steps
1. Open Terminal
2. Uninstall CLI and reinstall the latest available version (3.1.2)
Result
It would reinstall version 3.2.0
Expected Result
It should install version 3.1.2
+*Additional Information*+
I eventually got it to work by uninstalling 3.2.0, opening Studio and installing CLI through Studio.
This is a known issue with npm: https://github.com/isaacs/npm/issues/3265 As a workaround, just specify the version:
Closing ticket as this is not our bug.