Cannot build native app with Bitrise

0
Hello all, Mendix announced that the app center will be deprecated at the end of March 2025. So I found and followed the guide to use BitRise for building Mendix native apps. The problem arises when I run the workflow step Run npm command --> install and get presented with the following error:   Config: - workdir: . - command: install - npm_version: <unset> - cache_local_deps: false Info: From npm version >= v5.7.0, you can use the `npm ci` command insead of `npm install`. Using this command might speeds up your workflow. It does not work without `package-lock.json` so please commit it into the VCS repository. More info: https://github.com/npm/npm/releases/tag/v5.7.0 Autodetecting npm version Checking package.json for npm version Could not read version information from package.json Locating preinstalled npm npm found at /root/.nvm/versions/node/v16.3.0/bin/npm $ npm "--version" Preinstalled npm version: 7.15.1 Running user provided command $ npm "install" npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'native-template@7.0.25', npm WARN EBADENGINE required: { node: '>=20' }, npm WARN EBADENGINE current: { node: 'v16.3.0', npm: '7.15.1' } npm WARN EBADENGINE } npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated deep-assign@3.0.0: Check out `lodash.merge` or `merge-options` instead. npm WARN deprecated superagent@5.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. npm WARN deprecated @react-native-community/masked-view@0.1.10: Repository was moved to @react-native-masked-view/masked-view npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0 npm WARN deprecated @react-native-community/cameraroll@4.0.1: Package has been moved to @react-native-camera-roll/camera-roll starting with version 5.0 npm WARN deprecated superagent@6.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. npm WARN deprecated @react-native-community/async-storage@1.12.1: Async Storage has moved to new organization: https://github.com/react-native-async-storage/async-storage npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. > native-template@7.0.25 postinstall > node patches/apply-patches.js && jetify internal/fs/utils.js:269 throw err; ^ Error: EACCES: permission denied, copyfile '/bitrise/src/intermediary-patches/react-native-geocoder+0.5.0.patch' -> '/bitrise/src/patches/react-native-geocoder+0.5.0.patch' at copyFileSync (fs.js:1907:3) at applyPatch (/bitrise/src/patches/apply-patches.js:29:5) at /bitrise/src/patches/apply-patches.js:47:9 at Array.forEach (<anonymous>) at Object.<anonymous> (/bitrise/src/patches/apply-patches.js:45:17) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) { errno: -13, syscall: 'copyfile', code: 'EACCES', path: '/bitrise/src/intermediary-patches/react-native-geocoder+0.5.0.patch', dest: '/bitrise/src/patches/react-native-geocoder+0.5.0.patch' } npm ERR! code 1 npm ERR! path /bitrise/src npm ERR! command failed npm ERR! command sh -c node patches/apply-patches.js && jetify npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2025-03-13T11_18_21_106Z-debug.log Run: provided npm command failed: exit status 1 Beside the 'Run npm command' I tried to put the npm install statement inside a script step and added an echo statement and retrieved the node version. This also resulted in the above error Did someone had a similar experience and knows what is going on and how it can be solved. Greetings, Dylan
asked
0 answers