Appcelerator Titanium 3 Android模拟器环境错误

时间:2013-12-29 06:26:48

标签: android node.js titanium appcelerator

我是Appcelerator Titanium的新用户(安装在Windows(X86)上)。我尝试测试我的开发环境(Titanium SDK + Android SDK + Node.js),但是我遇到了一些错误:

Error: EPERM, operation not permitted 'C:\Program Files\Fichiers communs'

[ERROR] Application Installer abnormal process termination. Process exit value was 8

追踪:

 C:\Users\coyote\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:184
    throw e;       
 Error: EPERM, operation not permitted 'C:\Program Files\Fichiers communs'
at fs.readdirSync (fs.js:654:18)
at scan (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:138:25)
at scan (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:150:26)
at C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:156:10
at C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:113:8
at q.process (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:728:21)
at processImmediate (timers.js:330:15)
at C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:693:21
at Array.forEach (native)
at _each (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:32:24)
at _insert (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:678:11)
at q.push (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:705:15)
at C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:129:12
at queue.drain (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\node-appc\lib\subprocess.js:108:3)
at next (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:723:31)

at C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:693:21
at Array.forEach (native)
at _each (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:32:24)
at _insert (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:678:11)
at q.push (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:705:15)
at Object.findExecutable (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\node-appc\lib\subprocess.js:113:8)
at async.parallel.virtualbox (C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:99:20)
at C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\async\lib\async.js:521:25
[ERROR] Application Installer abnormal process termination. Process exit value was 8

5 个答案:

答案 0 :(得分:4)

我正在使用ubuntu 12.04,我遇到了同样的问题, 只需确保您的用户对“C:\ Program Files \ Fichiers communs”具有(读写 - 执行)权限

这个解决方案对我有用。

答案 1 :(得分:4)

我不知道你今天是否已经解决了你的问题,但就像你曾经在Titanium Studio上遇到这个问题一样,花了很多时间解决了我对TS所遇到的所有问题:我刚刚删除了genymotion在

找到的.js文件
C:\Users\coyote\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js

如果你总是遇到这样的问题,我希望能帮到你。

答案 2 :(得分:0)

关于文件夹'C:\ Program Files \ Fichiers communs'的许可。您可能会将其视为附件或常用文件。获得所有权并授予修改权限。它解决了我的问题。

答案 3 :(得分:0)

试试这个: 在文件夹"Common files"/"Fichiers communs"/"Archivos comunes"上。 (名称取决于您的语言),按鼠标右键。

Properties --> Tab "Security" --> Avanced options --> Tab "Owner" : 按编辑并将所有者从(在我的情况下为“SYSTEM”)更改为您的用户名。

应用更改。

这解决了我的问题。

编辑:此解决方案仅适用于Windows用户。

答案 4 :(得分:0)

用于Windows用户 http://nodejs.org/download/

Windows Installer(.msi)