Skip to content
shirish edited this page Oct 24, 2018 · 7 revisions

Build Requirements

These are the requirements for being able to build RequestPolicy:

  • Node.js (at least version 8.x)
  • npm
  • GNU Make
  • an internet connection to be able to download Node.js packages using NPM

Debian-based systems

If you're running a Debian-based system, you may use the following instructions:

GNU make

simply run sudo apt-get install make

Node.js and npm

On Debian testing (buster) or later you can simply run sudo apt-get install nodejs npm. This will install these packages:

On Debian stable (stretch) the npm package is missing, so please follow the official installation guide

Update - 25/10/2018 - NPM backporting is in progress, hopefully in a week or two.

See https://salsa.debian.org/js-team/npm/wikis/home .

So once this is done the only thing one would have to do in Debian stretch is enable backports to your hardware architecture, update the package index by running something

$ sudo apt update OR

$ sudo aptitude update OR

$ sudo apt-get update

update existing packages so there's a better migration path to Buster when it's released and can install npm when it's ready there. Nodejs can already be installed.

In general you can take a look at the columns on the left-hand side of https://tracker.debian.org/pkg/* to get a sense of the version numbers. This can be done with any debian package.

checking the installed version (optional)

This is an optional step, but might help if you run into any issues.

Run these commands:

  • node --version
  • npm --version
  • make --version

Example output:

$ node --version
v8.12.0
$ npm --version
6.4.1
$ make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.