我试图在ios模拟器中运行一个钛项目,但得到一些节点错误。

问题描述 投票:1回答:1

我试图在模拟器中用appcelerator studio运行一个钛项目,但得到一些节点错误,我使用了相同的节点版本,它是由它开发的,请帮助我。

下面的错误

文件

"/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 971, in WriteActions
    "Spaces in action output filenames not supported (%s)"  % output)
    "Spaces in action output filenames not supported (%s)"  % output)
AssertionError: Spaces in action output filenames not supported (/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/build/MobileDevice.framework)
AssertionError: Spaces in action output filenames not supported (/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/build/MobileDevice.framework)
gyp ERR! configure error 
gyp ERR! configure error 
gyp ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64" "--napi_version=5" "--node_abi_napi=napi"
gyp ERR! cwd /Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device
gyp gyp ERR!ERR!  Systemnode -v Darwin 19.0.0
 v13.6.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR!gyp  commandERR! "/usr/local/bin/node" "/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64" "--napi_version=5" "--node_abi_napi=napi"
 not ok 
gyp ERR! cwd /Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device
gyp ERR! node -v v13.6.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device/binding/node-v79-darwin-x64 --napi_version=5 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1028:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Darwin 19.0.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/czmac01/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.v20200422074103/node_modules/node-ios-device
node-pre-gyp ERR! node -v v13.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
node.js appcelerator titanium-mobile appcelerator-titanium appcelerator-studio
1个回答
1
投票

我会坚持使用LTS 12.16.x版本,并尝试在你转移到node 12.16.x后重新安装node包。

npm install -g titanium appcelerator alloy

另外请记住: 9.1.0.v20200422074103 是一个夜间构建,所以不是一个支持的版本。

另一个要注意的是。

既然有这个错误 Spaces in action output filenames not supported 你可以编辑。/Users/czmac01/.appcelerator/install/8.0.0/package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py 并添加一个日志,其中它抛出的错误 看看是哪个文件造成的问题。

© www.soinside.com 2019 - 2024. All rights reserved.