在几个月不使用它后,我刚刚更新了 appcelerator。我创建了一个新项目并尝试为 iPad Air (v10.2) 构建它完全无法构建并出现以下错误:

2017-03-02T16:18:01.679Z | DEBUG  | Titanium Downloads Last Checked: 1488468509275
2017-03-02T16:18:03.713Z | ERROR  | An uncaught exception was thrown!
Rebuild failed:
2017-03-02T16:18:03.714Z | ERROR  | Rebuild failed:

node-pre-gyp http GET https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v0.11.2/node_ios_device-v0.11.2-node-v51-darwin-x64.tar.gz
node-pre-gyp http 404 https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v0.11.2/node_ios_device-v0.11.2-node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download: https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v0.11.2/node_ios_device-v0.11.2-node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Pre-built binary not available for your system, looked for https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v0.11.2/node_ios_device-v0.11.2-node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! build error

我的节点版本是 7.4.0

有什么想法吗?

最佳答案

好的,再次在这里回答我自己的问题。

不知道为什么我得到 404 试图获取模块,但我通过将目录更改为
~/Library/Application Support/Titanium/mobilesdk/osx/6.0.2.GA/node_modules

然后运行:
npm install node-ios-device

不确定这是否会帮助其他人,但它让我克服了困难。

关于为 iOS 构建新项目时出现 Appcelerator 错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42560633/

10-16 23:21