Appcelerator:我在构建期间失败了 403
Appcelerator : I'm failing at 403 during build
$ appc ti build -T dist-adhoc
Appcelerator Command-Line Interface, version 7.1.2
Copyright (c) 2014-2020, Appcelerator, Inc. All Rights Reserved.
An uncaught exception was thrown!
Rebuild failed:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.10.3
node-pre-gyp info using node@13.11.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node" (not found)
node-pre-gyp http GET https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp http 403 https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for node-ios-device@1.6.3 and node@13.11.0 (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:467:16)
node-pre-gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
node-pre-gyp ERR! System Darwin 19.3.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/13.11.0/bin/node" "/Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-ios-device
node-pre-gyp ERR! node -v v13.11.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
无论选择哪个版本的SDK,都将被拒绝访问
在其他服务器授予访问权限之前无法构建吗?
请将您的 Node 版本降级到 12.x(LTS 版本)。另外,我建议将 SDK 更新到更新的版本:如果您必须使用 8,则可以使用 8.3.1.GA; 9.0.1.GA 当然会更好。这可能已经解决了这个问题。
解决这个问题让我头痛不已。
运行
appc ti info
你可能会遇到这个错误。
ERROR: appc requires Node.js >=10.13.0
Visit http://nodejs.org/ to download a newer version.
转到此 link。 https://nodejs.org/en/download/releases/
并为您的特定节点版本下载 .pkg,不要安装最新的,因为它会因 gyp 错误而崩溃。
安装最新包后 运行。
node -v
然后
appc ti info
希望这对你有用。
$ appc ti build -T dist-adhoc
Appcelerator Command-Line Interface, version 7.1.2
Copyright (c) 2014-2020, Appcelerator, Inc. All Rights Reserved.
An uncaught exception was thrown!
Rebuild failed:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.10.3
node-pre-gyp info using node@13.11.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node" (not found)
node-pre-gyp http GET https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp http 403 https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for node-ios-device@1.6.3 and node@13.11.0 (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.6.3/node_ios_device-v1.6.3-node-v79-darwin-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:467:16)
node-pre-gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
node-pre-gyp ERR! System Darwin 19.3.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/13.11.0/bin/node" "/Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/test/Library/Application Support/Titanium/mobilesdk/osx/8.1.1.GA/node_modules/node-ios-device
node-pre-gyp ERR! node -v v13.11.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
无论选择哪个版本的SDK,都将被拒绝访问
在其他服务器授予访问权限之前无法构建吗?
请将您的 Node 版本降级到 12.x(LTS 版本)。另外,我建议将 SDK 更新到更新的版本:如果您必须使用 8,则可以使用 8.3.1.GA; 9.0.1.GA 当然会更好。这可能已经解决了这个问题。
解决这个问题让我头痛不已。
运行
appc ti info
你可能会遇到这个错误。
ERROR: appc requires Node.js >=10.13.0
Visit http://nodejs.org/ to download a newer version.
转到此 link。 https://nodejs.org/en/download/releases/
并为您的特定节点版本下载 .pkg,不要安装最新的,因为它会因 gyp 错误而崩溃。
安装最新包后 运行。
node -v
然后
appc ti info
希望这对你有用。