Description
*This is blocking CI builds on Jenkins, we should revert the node-ios-device update*
When building with
-C
the build will error with an error like below, this is because node-pre-gyp is parsing our
-C
flag and assuming it's meant for itself and changing the directory which is then causing the error.
I think node-pre-gyp-init needs to maybe try and force node-pre-gyp to not do this.
Error: ENOENT: no such file or directory, open 'foooo/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/node-ios-device/package.json'
at Object.openSync (fs.js:462:3)
at Object.readFileSync (fs.js:364:35)
at Run.parseOpts [as parseArgv] (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:176:37)
at new Run (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:85:8)
at exports.find (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js:21:16)
at Immediate.<anonymous> (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/node-pre-gyp-init/index.js:21:21)
at processImmediate (internal/timers.js:461:21) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'foooo/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/node-ios-device/package.json'
}
Steps to reproduce
1. With a 10.0.0 build pass in the
-C
option when building to ios
Actual
Above error
Expected
No error
10_0_X revert: https://github.com/appcelerator/titanium_mobile/pull/12577 master revert : https://github.com/appcelerator/titanium_mobile/pull/12578
node-pre-gyp-init PR to clear process.argv before calling @mapbox/node-pre-gyp https://github.com/cb1kenobi/node-pre-gyp-init/pull/3
master PR to update node-pre-gyp-init dependency: https://github.com/appcelerator/titanium_mobile/pull/12579
FR Passed error no longer seen when running
appc run -p ios -C <ios uuid>
Tested using SDK Version10.1.0.v20210407072202
and10.0.0.v20210407072525
.