Gatsby on Linux
This is a TODO. Help our community expand it.
Please use the Gatsby Style Guide to ensure your pull request gets accepted.
As of October 17th 2017, Windows 10 ships with WSL and Linux distributions are available via the Windows Store, there are several different distributions to use which can be configured via
wslconfig if you have more than one distribution installed.
# set default distribution to Ubuntu wslconfig /setdefault ubuntu
If you have a fresh install of Ubuntu then update and upgrade:
sudo apt update sudo apt -y upgrade
-yif you’re happy to upgrade to the latest versions of the software.
To compile and install native addons from npm you may also need to install build tools for
sudo apt install -y build-essential
Following the install instructions on nodejs.org leaves a slightly broken install (i.e. permission errors when trying to
npm install). Instead try installing node versions using n which you can install with n-install:
curl -L https://git.io/n-install | bash
Debian setup is nearly identical to Ubuntu except for the additional installs of
sudo apt update sudo apt -y upgrade sudo apt install build-essential sudo apt install git sudo apt install libpng-dev
Or to install all at the same time and approve
(y) all installs:
sudo apt update && sudo apt -y upgrade && sudo apt install build-essential && sudo apt install git && sudo apt install libpng-dev
edit this page on GitHub