Installing JavaScript

There are a couple of ways to install NodeJS:

Both options have selections for Windows, MacOS, and Linux.

If you've used the official installer, your PATH should have been automatically configured, but if your shell has trouble locating your globally installed modules—or if you build Node.js from source—update your PATH to include the npm binaries by adding the following to either ~/.bash_profile or ~/.zshrc:

$ export PATH=/usr/local/share/npm/bin:$PATH

Each assignment needs some tools to run the tests:

  • Jest: a test runner based on Jasmine
  • Babel: to transpile ECMAScript 2015 code to ECMAScript 5
  • ESLint (optional): to perform several static analysis and coding style checks to your JavaScript code.

They can be installed running this command within each assignment directory:

$ npm install
Programming person with notebook