To install Node.js, click one of the big, green download links on the web site.
Node version numbers are confusing, but either the LTS version (6.10.2 as of this writing) or the Current version (7.9.0) will do for our purposes.
After Node is installed, close Hyper and reopen it. That way, node
and other related commands will be available to you from any folder. Test your installation by running the following command:
npm install -g create-react-app
You should see a progress bar of sorts while packages download and, eventually, a tree structure of various package names and version numbers. As you may have guessed, aside from testing your Node installation, this has the side effect of installing create-react-app
, which we’ll later use to do exactly what its name suggests.
Yarn is an alternative to NPM that offers several advantages—not the least of which is speed.
Download the installer from the Yarn site, and run it.
Once Yarn is installed, run this command to test it:
yarn global add eslint