Need help building android apk

I’m trying to build Brave for Android. I have all done as described on web page. Brave-Core folders are cloned into ‘brave/scr/brave’
when I start npm install in folder ‘brave/scr/brave’ the install fails.
Really don’t know what’s wrong or what is missing

… and how can I add a log file here ?

npm WARN deprecated @storybook/[email protected]: deprecating @storybook/addon-knobs in favor of @storybook/addon-controls
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/bin/node /usr/share/nodejs/npm/bin/npm-cli.js install --force --cache=/home/ich/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! > @brave/[email protected] prepare
npm ERR! > npm run build
npm ERR! 
npm ERR! 
npm ERR! > @brave/[email protected] build
npm ERR! > npm run transform-tokens && npm run skiafy-icons && rollup -c rollup.config.js
npm ERR! 
npm ERR! 
npm ERR! > @brave/[email protected] transform-tokens
npm ERR! > node ./src/tokens/transformTokens.js && tsc -p ./tsconfig-tokens.json
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm ERR! npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm ERR! npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm ERR! npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm ERR! npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated [email protected]: 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 ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! /home/ich/.npm/_cacache/tmp/git-clone-cd2d8805/src/tokens/transformation/web/formatCss.js:10
npm ERR!   const opts = options ?? {}
npm ERR!                         ^
npm ERR! 
npm ERR! SyntaxError: Unexpected token '?'
npm ERR!     at wrapSafe (internal/modules/cjs/loader.js:915:16)
npm ERR!     at Module._compile (internal/modules/cjs/loader.js:963:27)
npm ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
npm ERR!     at Module.load (internal/modules/cjs/loader.js:863:32)
npm ERR!     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
npm ERR!     at Module.require (internal/modules/cjs/loader.js:887:19)
npm ERR!     at require (internal/modules/cjs/helpers.js:74:18)
npm ERR!     at Object.<anonymous> (/home/ich/.npm/_cacache/tmp/git-clone-cd2d8805/src/tokens/transformation/web/index.js:55:14)
npm ERR!     at Module._compile (internal/modules/cjs/loader.js:999:30)
npm ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/ich/.npm/_cacache/tmp/git-clone-cd2d8805
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c npm run build
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/ich/.npm/_logs/2023-05-15T14_13_53_980Z-debug-0.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ich/.npm/_logs/2023-05-15T14_13_44_367Z-debug-0.log

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.