Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Install on Linux

yan edited this page Mar 14, 2017 · 5 revisions

NOTE: Unless you are installing for development, this document is obsoleted by https://github.com/brave/browser-laptop/blob/master/docs/linuxInstall.md

Install step

Please target instructions for end-users, not high-level JS-linux wizard. So we can work toward automation install scripts.

Required knowledge

  • basic git ;
  • basic nodejs ;

*Ubuntu

Nodejs 5 (detailed instructions)

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g node-gyp@3.2.1

Then brave browser

git clone --depth 1 https://github.com/brave/browser-laptop brave-browser
cd brave-browser
npm install

If you get an error message regarding keytar package, similar to the below:

npm ERR! keytar@3.0.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the keytar@3.0.2 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the keytar package,
npm ERR! not with npm itself.

Run sudo apt-get install g++ libgnome-keyring-dev to get the missing packages needed for node-gyp rebuild.

Open two terminal windows/tabs and finally run it:

npm run watch
npm start