---
title: "安装Titanium Studio时的错误:Unable to locate the CLI executable"
author: "heweiya"
date: "2014-09-28T20:11:28Z"
tags: []
categories: ["编程语言"]
slug: "titanium-studio-unable-to-locate-the-cli-executable"
draft: false
lastmod: "2014-09-28T20:11:28Z"
id: 2123508
url: "https://heweiya.iteye.com/blog/2123508"
---

在windows上安装Tianium studio时报错：Unable to locate the CLI executable，提示是使用help的更新就可以。但是使用更新后提示为：No Titanium updates available。

      如此反复，终究还是没有成功。于是通过google大仙来解决问题(如果你要通过百度求药，真的，他说这是不治这症)，得到的回复是:[http://stackoverflow.com/questions/16123892/facing-unable-to-locate-the-cli-executable-on-windows](http://stackoverflow.com/questions/16123892/facing-unable-to-locate-the-cli-executable-on-windows)。

      答案就是：

```
npm install -g alloy titanium
```

 　　使用的前提是你安装了node.js并且设置为系统变量。

　　如果你不能成功，哪说明是“长城的问题”。我第一次没有成功，后来使用goagent把问题解决了，在自己的blog里mark一下。