Titanium thinks I have 3.1.2 but I installed 3.4.1. What to do?

465 Views Asked by At

I opened Titanium after about a year without using it. I upgraded everything before doing anything but now everything crashes.

Here is what I have:

Under titanium studio I am able to set the SDK to 3.4.1, but when I try to create a project I get:

[31m Command "create" incompatible with this version of the Titanium CLI[39m
[WARN] :   Requires version >=3.2.1, currently 3.1.2

So then I went to terminal and run

titanium -v

and I get

3.1.2

I tried

sudo npm install -g titanium

But it doesn't seem to do nothing. I also tried to uninstall Titanium with

sudo npm -g uninstall titanium

but I get

npm WARN uninstall not installed in /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/lib/node_modules: "titnaium"

When I run

type -a titanium

I get

titanium is /usr/local/bin/titanium

I also tried restarting my computer, opening and closing Studio, etc...but I am totally lost, for some reason I can't make it work. Any idea on how to solve this will be appreciated! Thanks

1

There are 1 best solutions below

7
On

First of all run following command in CLI

ti sdk select

Select the 3.4.1 as your sdk and let me know if that solved the problem

Thanks