我已经使用了appcelerator CLI一段时间了,一切正常,直到今天。
当我尝试运行以下命令时突然发生错误:
appc ti build --platform android -T device
C:\Users\User\.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:185
throw e;
^
TypeError: Invalid Version: build.0.0
我尝试搜索并发现有很多关于longjohn.js
抛出e
错误的帖子,但没有一条错误消息Invalid Version: build.0.0
我使用 appcelerator 5.0.2 从 Windows 7 运行此操作。目标 android 平台
之前有人遇到过此问题吗?有任何建议或步骤来解决这个问题吗?
谢谢
更新
试图运行appc info
并收到以下错误:
Appcelerator Command-Line Interface, version 5.0.2
Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved.
[PLUGIN-LOAD] 0ms C:\Users\User\.appcelerator\install\5.0.2\package\appc.js
[PLUGIN-LOAD] 776ms C:\Users\User\.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\appc.js
[PLUGIN-LOAD] 0ms C:\Users\User\.appcelerator\install\5.0.2\package\node_modules\arrow\appc.js
ERROR | titanium exited with exit code 8. re-run with -l trace to get detailed output
我尝试appc ti clean
,但它也没有帮助。
使用-l跟踪更新
以下是我运行appc info -l trace
的结果:
Appcelerator Command-Line Interface, version 5.0.2 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved.
__command__ search paths: [ "C:\\Users\\User\\.appcelerator\\install\\5.0.2\\package", "C:\\Users\\User\\.appcelerator\\install\\5.0.2\\package\\node_modules", "D:\\appcelerator_workspace\\BlackButton\\modules", "D:\\appcelerator_workspace\\BlackButton\\plugins", "D:\\appcelerator_workspace\\BlackButton\\node_modules", "D:\\appcelerator_workspace\\node_modules", "D:\\node_modules", "C:\\Users\\User\\.appcelerator\\.npm\\lib\\node_modules" ] [PLUGIN-LOAD] 0ms C:\Users\User\.appcelerator\install\5.0.2\package\appc.js [PLUGIN-LOAD] 718ms C:\Users\User\.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\appc.js [PLUGIN-LOAD] 1ms C:\Users\User\.appcelerator\install\5.0.2\package\node_modules\arrow\appc.js log level set to "trace" executing command "info" set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
checking credentials for existing session Attempting to load session info from config file check if session is invalidated session expiry 1449554288096 false Arrow Cloud config file: C:\Users\User\.acs found Arrow Cloud login { mid: 'ce9aca6f8de18937ab3063f00c6ea0c8e194c0ef', publishPort: 443, publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com', username: 'williamtan89@hotmail.com', cookie: [ 'connect.sid=s%3A96v7wP3oaYbdV%2BLKu8IdiE3d.cjDf28RzrGOHQbxcd5507u4R STiRnGEO2SvwCG0zNtw; Path=/; Expires=Tue, 15 Dec 2015 05:58:21 GMT; HttpOnly' ],
defaultEP: { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com Arrow Cloud cookie expiry [ 1450159101000 ] session already loaded in opts.session getCredentials() session: { "ipaddress": "10.238.179.133", "username": "williamtan89@hotmail.com", "password": "<OMITTED>", "session": "<OMITTED>", "nonce": "<OMITTED>", "environment": {
"name": "production",
"isProduction": true,
"acsBaseUrl": "https://api.cloud.appcelerator.com",
"acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
"nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com" }, "token": "<OMITTED>", "fingerprint": "ce9aca6f8de18937ab3063f00c6ea0c8e194c0ef", "fingerprint_description": "Windows Machine ID: b250f9d4-0356-48cd-b9fb-d67ac86e7802", "org_id": 100032901, "expiry": 1449554288096 } noPlugins set for command "info" executing command "info" with no plugins "C:\Program Files\nodejs\node.exe" "C:\Users\User\.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\titanium\bin\titanium" sdk -o json checking for titanium, result: { activeSDK: '5.0.2.GA', defaultInstallLocation: 'C:\\ProgramData\\Titanium', installLocations: [ 'C:\\ProgramData\\Titanium',
'C:\\Users\\User\\AppData\\Roaming\\Titanium',
'C:\\ProgramData\\Application Data\\Titanium' ], installed: { '5.0.2.GA': 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.0.2.GA',
'5.0.0.v20150920231514': 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.0.0.v20150920231514',
'4.1.1.v20150816214206': 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.1.v20150816214206',
'3.2.3.GA': 'C:\\Users\\User\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.3.GA' }, sdks: { '5.0.2.GA':
{ name: '5.0.2.GA',
manifest: [Object],
path: 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.0.2.GA' },
'5.0.0.v20150920231514':
{ name: '5.0.0.v20150920231514',
manifest: [Object],
path: 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.0.0.v20150920231514' },
'4.1.1.v20150816214206':
{ name: '4.1.1.v20150816214206',
manifest: [Object],
path: 'C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.1.v20150816214206' },
'3.2.3.GA':
{ name: '3.2.3.GA',
manifest: [Object],
path: 'C:\\Users\\User\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.3.GA' } } } cmd [ '/s', '/c', 'node', 'C:\\Users\\User\\.appcelerator\\install\\5.0.2\\package\\node_modules\\appc-cli-titanium\\node_modules\\titanium\\bin\\titanium', 'info', '--color', '--config', '{"cli":{"colors":true}}' ] Titanium Command-Line Interface, CLI version 5.0.4, Titanium SDK version 5.0.2.GA Copyright (c) 2012-2015, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
8
ERROR | Error: titanium exited with exit code 8. re-run with -l trace to get detailed output
at ChildProcess.<anonymous> (C:\Users\User\.appcelerator\install\5.0.2\package\lib\commands\info.js:35:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
答案 0 :(得分:1)
请清理您的项目并重新构建。