64位版本的Titanium Stream Specs似乎存在问题。我收到以下堆栈跟踪错误:
Script Error Couldn't find module: stream for architecture: arm64
Script Error Module "libs/backendless.js" failed to leave a valid exports object
ErrorController is up. ABORTING showing of modal controller
Error: ESOCKETTIMEDOUT
at ClientRequest.<anonymous> (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/request/request.js:819:19)
at emitNone (events.js:86:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.emitTimeout (_http_client.js:679:10)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:188:7)
at TLSSocket.Socket._onTimeout (net.js:352:8)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
<p class="p1">---------------------------------------------
at Request.init (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/request/request.js:190:10)
at new Request (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/request/request.js:130:8)
at request (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/request/index.js:54:10)
at Function.get (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/request/index.js:62:12)
at _createRequest (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/lib/index.js:232:39)
at Object.Appc.createRequest (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/lib/index.js:93:9)
at /Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/lib/auth.js:266:8
at /Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/node_modules/async/dist/async.js:3861:9
at /Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/node_modules/async/dist/async.js:421:16
at replenish (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/node_modules/async/dist/async.js:941:25)
at iterateeCallback (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/node_modules/async/dist/async.js:931:17)
at /Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/node_modules/async/dist/async.js:906:16
at /Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/node_modules/async/dist/async.js:3858:13
at /Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/appc-platform-sdk/lib/auth.js:494:3
at next (/Users/kamrezvani/.appcelerator/install/6.2.4/package/node_modules/request/node_modules/tough-cookie/lib/cookie.js:988:9)
<p class="p1">---------------------------------------------
at /Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/iphone/cli/hooks/install.js:117:8
at /Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/async/dist/async.js:3047:16
at replenish (/Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/async/dist/async.js:982:17)
at /Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/async/dist/async.js:986:9
at eachLimit$1 (/Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/async/dist/async.js:3133:22)
at Object.<anonymous> (/Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/async/dist/async.js:1016:16)
at /Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/iphone/cli/hooks/install.js:105:11
at /Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/ioslib/lib/device.js:65:11
at /Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/ioslib/node_modules/node-ios-device/ios-device.js:93:4
at Immediate.<anonymous> (/Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/node_modules/ioslib/node_modules/node-ios-device/ios-device.js:92:11)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
-- End application log -------------------------------------------------
答案 0 :(得分:0)
在查看您在评论中分享的文件后,您似乎无法在Titanium应用中使用该代码,因为它意味着适用于网站,而不适用于移动应用。
此外,该代码需要更多模块,其中第一次调用需要的是&#34;流模块&#34; ,因为您可以看到此片段 {{1在顶行的代码中。
请注意您在移动应用程序中运行代码这一事实,因此必须知道目标移动操作系统和代码的所有代码。这里 ...module.exports = factory(require("stream")...
代码适用于网站。
答案 1 :(得分:0)
使用以下库将Appcelerator Titanium连接到Backendless: