I wanted to contribute to Brave, I cloned repo and followed the build instructions for ubuntu. I tried many times but npm run init
command always took too much time (this is OK because it might be related to my internet connection) but it failed on every time. I remove the folder and clone the repository again. I would like to leave the log here in case someone would find a fix or can anyone tag the related posts:
- 1. npm run init giving this kind of log
satya@satya:~/my folder/web Dev/opensource/src/brave$ npm run init
[email protected] init
cd …/…/ && npm run --prefix src/brave sync – --init
[email protected] sync
node ./build/commands/scripts/sync.js --init
depot_tools checkout was interrupted. Cleaning up…
install depot_tools…
/home/satya/my folder/web Dev/opensource/src/brave
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /home/satya/my folder/web Dev/opensource/src/brave/vendor/depot_tools
fatal: Too many arguments.
usage: git clone [] [–] []
-v, --[no-]verbose be more verbose
-q, --[no-]quiet be more quiet
--[no-]progress force progress reporting
--[no-]reject-shallow don't clone shallow repository
-n, --no-checkout don't create a checkout
--checkout opposite of --no-checkout
--[no-]bare create a bare repository
--[no-]mirror create a mirror repository (implies bare)
-l, --[no-]local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
--hardlinks opposite of --no-hardlinks
-s, --[no-]shared setup as shared repository
--[no-]recurse-submodules[=<pathspec>]
initialize submodules in the clone
--[no-]recursive ... alias of --recurse-submodules
-j, --[no-]jobs <n> number of submodules cloned in parallel
--[no-]template <template-directory>
directory from which templates will be used
--[no-]reference <repo>
reference repository
--[no-]reference-if-able <repo>
reference repository
--[no-]dissociate use --reference only while cloning
-o, --[no-]origin <name>
use <name> instead of 'origin' to track upstream
-b, --[no-]branch <branch>
checkout <branch> instead of the remote's HEAD
-u, --[no-]upload-pack <path>
path to git-upload-pack on the remote
--[no-]depth <depth> create a shallow clone of that depth
--[no-]shallow-since <time>
create a shallow clone since a specific time
--[no-]shallow-exclude <revision>
deepen history of shallow clone, excluding rev
--[no-]single-branch clone only one branch, HEAD or --branch
--no-tags don't clone any tags, and make later fetches not to follow them
--tags opposite of --no-tags
--[no-]shallow-submodules
any cloned submodules will be shallow
--[no-]separate-git-dir <gitdir>
separate git dir from working tree
-c, --[no-]config <key=value>
set config inside the new repository
--[no-]server-option <server-specific>
option to transmit
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only
--[no-]filter <args> object filtering
--[no-]also-filter-submodules
apply partial clone filters to submodules
--[no-]remote-submodules
any cloned submodules will use their remote-tracking branch
--[no-]sparse initialize sparse-checkout file to include only files at root
--[no-]bundle-uri <uri>
a URI for downloading bundles before fetching from origin remote
null
- my Operating System and version: Ubuntu 24.04
.I really appreciate your help.
@Saoiray