Error in building brave (npm run build command)

Hi,
I’m following this wiki for installing page-graph :- https://github.com/brave/brave-browser/wiki/PageGraph

I’m getting the following error in the final command ( npm run build)

…/…/base/time/time.h:807:18: error: implicit conversion from ‘std::__1::numeric_limits::type’ (aka ‘long long’) to ‘double’ changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion]
return value > std::numeric_limits<int64_t>::max()
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[25/37794] ACTION //brave/components/brave_adblock_ui:brave_adblock_ui(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.
null
null
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! brave@0.72.65 build: node ./scripts/commands.js build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave@0.72.65 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I’m on MacOs, node v12.12.0, npm v6.12.0

I would be grateful if anyone can help me out! Thank you!

1 Like