In order to install Flightplan, there are a few development tools needed first. The below steps will guide you through installing them.
To run Javascript programs outside the browser, you'll need to install a JavaScript runtime, called Node.js. The method is slightly different, depending on your platform.
- Download and run the Node.js Installer. Choose the Current version instead of the LTS version.
Note: After the installer completes, be sure to restart your computer.
- Open an elevated PowerShell prompt (in taskbar search, type
powershell
, right-click on "Windows PowerShell" and select "Run as Administrator"). Then run:
> npm install --add-python-to-path --global --production windows-build-tools --vs2015
Note: Once the install is complete, you must restart your computer again.
-
Install XCode from the Apple App Store.
-
Open a Terminal window, and run the following command to install the XCode command line tools:
$ xcode-select --install
-
Install HomeBrew, following the instructions on their website.
-
Open a Terminal window, and run:
$ brew install node
- Make sure
curl
is installed, by opening Terminal and running:
$ sudo apt install curl
- Add the PPA for the latest Node.js release:
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
- Now install Node.js and NPM:
$ sudo apt install -y nodejs
- Finally, install the build tools:
$ sudo apt install -y build-essential
To make sure Node.js and NPM were installed successfully, open up a command line (cmd.exe or PowerShell on Windows, or Terminal on MacOS or Ubuntu), and run the following commands:
$ node -v
v10.12.0
$ npm -v
6.2.0
Your versions may be slightly different, just be sure there are no error messages.
The final step is to install Flightplan itself:
$ npm install --global flightplan-tool
If you received any errors, please file an issue. Otherwise, run the following command to verify Flightplan was installed properly:
$ flightplan --version
0.2.7
Again, your exact version may be slightly different, that's OK.
Note: When you install Flightplan, it will be bundled with a recent version of Chromium automatically (so you do not need Chrome installed on your machine to use Flightplan).