Clone, Install, Build and Run¶
# Clone this repository $ git clone https://github.com/nexB/scancode-workbench.git # Go into the repository $ cd scancode-workbench # Install dependencies and run the app $ npm install # Rebuild native Node.js modules against the app version of Node.js # MacOS, Linux and Git Bash on Windows $ $(npm bin)/electron-rebuild # Windows except for Git Bash > .\node_modules\.bin\electron-rebuild.cmd # Run the app $ npm start
Node.js version 6.x or later
npm 3.10.x or later but <= 5.2.0 (run
npm install firstname.lastname@example.org -g)
Node.js 6.x or later
npm 3.10.x or later but <= 5.2.0 (
run npm install email@example.com -g)
Make sure your Python path is set. To verify, open a command prompt and type
python --version. Then, the version of python will be displayed.
Visual C++ Build Environment:
Option 1: Install Visual C++ Build Tools 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.
Option 2: Visual Studio 2015 (Community Edition or better)
Note: Windows 7 requires .NET Framework 4.5.1
npm config set msvs_version 2015
You can build a
dist directory containing executables for any one of three target platforms
$ python build.py
After building is done, you can find ScanCode-Workbench under
dist/ScanCode-Workbench-<os>-x64-<version>. Archives (
are also built.
A build for any of the three target platforms must be executed on the targeted platform.