钛SDK不会承认钛CLI,节点,合金或NPM在Ubuntu 12.04 [英] Titanium SDK will not recognize Titanium CLI, node, alloy, or npm on Ubuntu 12.04

查看:158
本文介绍了钛SDK不会承认钛CLI,节点,合金或NPM在Ubuntu 12.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

二SDK不会承认钛CLI,节点,合金或NPM在Ubuntu 12.04

Titanium SDK will not recognize Titanium CLI, node, alloy, or npm on Ubuntu 12.04

我跟这里的钛SDK安装说明:的http:// docs.appcelerator.com/titanium/latest/#!/guide/Quick_Start

I followed the installation instructions for the Titanium SDK here: http://docs.appcelerator.com/titanium/latest/#!/guide/Quick_Start

每次我尝试推出钛,它会提示我要一些钛更新。

Each time I try to launch titanium, it prompts me for some Titanium Updates.

不过,当然,当我点击看中的更新按钮,它告诉我:

But of course, when I click the fancy update button, it tells me:

安装更新钛......遇到了问题。错误
  更新过程中遇到。

'Installing Titanium Updates...' has encountered a problem. Error encountered during update.

不能在非Windows或Mac等平台上安装节点。

Cannot install Node on platforms other than Windows or Mac.

NPM未安装。

NPM未安装。

NPM未安装。

我不同意:我已经安装了绝对节点,NPM,我手动安装合金

I disagree: I have definitely installed node, npm, and I manually installed alloy with

npm install -g alloy

下面是从我的终端其他一些相关的结果:

Here are some other relevant results from my terminal:

ryan@Grisbuntu:~$ which node
/home/ryan/local/bin/node

ryan@Grisbuntu:~$ which titanium
/home/ryan/local/bin/titanium

ryan@Grisbuntu:~/local/bin$ titanium -v
3.1.2
ryan@Grisbuntu:~/local/bin$ node -v
v0.10.15
ryan@Grisbuntu:~/local/bin$ alloy -v
1.2.2
ryan@Grisbuntu:~/local/bin$ npm -v
1.3.5

我想继续用Hello World应用(及以后),但例如当我点击运行 - > Android模拟器,我得到以下错误:

I'd like to continue with a "Hello World" application (and beyond), but for example when I click "Run->Android Emulator", I get the following error:

启动钛Android模拟器 - HTML5-你好'遇到了
  问题。

'Launching Titanium Android Emulator - html5-hello' has encountered a problem.

无法找到CLI可执行文件。请重新启动Studio或使用
  帮助>检查更新钛安装钛CLI。

Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI.

我已经发现了不少类似的问题在那里,但几个答案...谁能给我一个线索,如何解决这一问题?我是新来的钛/ Eclipse的:有一个简单的路径设置,我很想念的地方

I have discovered quite a few similar questions out there, but few answers... can anyone give me a clue as to how to fix this? I am new to Titanium/Eclipse: Is there a simple path setting that I am missing somewhere?

推荐答案

我想我固定我自己的问题。尽管节点和故宫是我的系统上安装pviously $ P $,我能够从一个正常的Linux终端做这样的事情节点-v和钛-v钛不承认存在任何这些程序。我试图插入一个声明出口到我的bash配置文件,卸载并重新安装节点的各种组合(通过apt-get和手动解压压缩包等)等,但似乎没有任何工作。

I think I fixed my own problem. Despite the fact that node and npm were previously installed on my system, and I was able to do things like "node -v" and "titanium -v" from a "normal" linux terminal, Titanium was not recognizing the existence of any of these programs. I tried various combinations of inserting an export statement into my bash profile, uninstalling and reinstalling node, (via apt-get and manually extracting the tarball, etc) and so on, but nothing seemed to work.

我最终什么事做了我的推出钛项目,我跑了节点-v。它给了我的版本0.6.blah.blah。我仍然感到困惑这是为什么...但解决它,使用终端内钛,我发出的所有下面的命令:

What I ended up doing was launching my Titanium project, and I ran "node -v". It gave me version 0.6.blah.blah. I am still confused why this is... but to solve it, using the terminal WITHIN titanium, I issued all the following commands:

(我走之前,如果你打算自己试用,这个答案可能是不完整或不准确略:我很抱歉,我没有把它写下来正是因为我去...但是这是关闭。点到这个解决方案是,我不得不这样做从内部钛)。

(before I go on, if you're going to try this yourself, this answer might be incomplete or slightly inaccurate: i'm sorry that I didn't write it down exactly as i went... but this is close. The point to this solution is that I had to do it FROM WITHIN titanium).

sudo apt-get remove npm
sudo apt-get remove node
wget http://nodejs.org/dist/v0.10.18/node-v0.10.18.tar.gz
tar -zxf node-v0.10.18.tar.gz
cd node-v0.10.18
./configure && make && sudo make install

RESTART TITANIUM
然后,再在钛终端,运行

RESTART TITANIUM then, again in a titanium terminal, run

npm install titanium
npm install alloy

这些最后两个命令是什么真的让我渡过了难关。我的Hello World应用程序,而我的Andr​​oid模拟器,现在成功启动。希望可以帮助别人。如果谁能给我,为什么我不得不这样做是这样解释的,我想了解它。否则,感谢和放大器;祝你好运!

Those last 2 commands are what really got me over the hump. My hello world application, and my android emulator, now successfully launch. Hope that helps someone. If anyone can explain to me why I had to do it this way, I'd like to understand it. Otherwise, thanks & good luck!

这篇关于钛SDK不会承认钛CLI,节点,合金或NPM在Ubuntu 12.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆