tidev / gittio

Search & Install all Titanium Modules and Alloy Widgets on GitHub
http://gitt.io
Other
24 stars 19 forks source link

Cannot use gittio with nvm #111

Closed davidbnk closed 8 years ago

davidbnk commented 8 years ago

I installed Node.js through nvm, and I get the following error:

$ node -v
v5.3.0

$ gittio install <module>
[ERROR] gittio requires the global Titanium CLI: [sudo] npm install -g titanium

$ npm install -g titanium
/Users/user/.nvm/versions/node/v5.3.0/bin/ti -> /Users/user/.nvm/versions/node/v5.3.0/lib/node_modules/titanium/bin/titanium
/Users/user/.nvm/versions/node/v5.3.0/bin/titanium -> /Users/user/.nvm/versions/node/v5.3.0/lib/node_modules/titanium/bin/titanium
/Users/user/.nvm/versions/node/v5.3.0/lib
└── titanium@5.0.5 

$ gittio install <module>
[ERROR] gittio requires the global Titanium CLI: [sudo] npm install -g titanium
FokkeZB commented 8 years ago

Could it be that you have tishadow installed? It used the sys module which causes a warning in Node 4 or later which corrupts the Titanium json output that ultimately can cause this error: https://github.com/FokkeZB/gittio/issues/109

davidbnk commented 8 years ago

Yes, I do have tishadow installed. Thanks for the feedback