Problems when building brave browser in windows

Description of the issue:
I wanted to build brave browser on my computer. I followed all instructions and requirements. “npm Install” looks fine. After the “npm run init” command, i’m getting errors.

$ npm run init

brave@1.14.24 init C:\brave-browser\brave-browser
node ./scripts/init.js
Performing initial checkout of brave-core
Cloning brave-core [master] into C:\brave-browser\brave-browser\src\brave…
/-------------------------------
C:\brave-browser\brave-browser\src\brave
git clone https://github.com/brave/brave-core.git .
/-------------------------------
C:\brave-browser\brave-browser\src\brave
git checkout master
/-------------------------------
C:\brave-browser\brave-browser\src\brave
npm.cmd install

npm WARN tar ENOENT: no such file or directory, open ‘C:\brave-browser\brave-browser\src\brave\node_modules.staging\core-js-eb820c3e\es\string\anchor.js’
npm WARN tar ENOENT: no such file or directory, open ‘C:\brave-browser\brave-browser\src\brave\node_modules.staging\core-js-c093ddaa\es\regexp\constructor.js’
npm WARN tar ENOENT: no such file or directory, open ‘C:\brave-browser\brave-browser\src\brave\node_modules.staging\core-js-cdb882f7\es\string\anchor.js’
npm WARN tar ENOENT: no such file or directory, open ‘C:\brave-browser\brave-browser\src\brave\node_modules.staging\core-js-eb820c3e\es\string\big.js’

– long similar WARN tar ENOENT error here –

npm WARN tar ENOENT: no such file or directory, open ‘C:\brave-browser\brave-browser\src\brave\node_modules.staging\core-js-2a95d827\stable\typed-array\values.js’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2020-08-07T06_11_03_015Z-debug.log

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! brave@1.14.24 init: node ./scripts/init.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave@1.14.24 init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2020-08-07T06_11_06_303Z-debug.log

How can this issue be reproduced?

  1. I followed and installed all required tools that needs to be installed and configured
  2. git clone https://github.com/brave/brave-browser.git
  3. inside the project folder : npm install
  4. npm run init
    then error above occures

Expected result:
creat a build that i can run
Brave Version( check About Brave):
I’m not using brave instead i’m trying to build the sources of brave
Additional Information:
computer
Microsoft Windows Server 2019 Datacenter
Intel® Xeon® Platinum 8275CL CPU @ 3.00GHz, 3000 Mhz, 4 Core(s), 8 Logical Processor(s)
16GB RAM

I double checked all requirements in Visual Studio Installer Requirements
Python 2.8
Python 3
Nodejs
depot_tools
all installed and in the environement variables

I also tried deleting package-lock.json if it will work but no luck.

Really?, there’s no replies from brave community?

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