Skip to content

Instantly share code, notes, and snippets.

@helloworld
Last active February 6, 2017 21:31
Show Gist options
  • Select an option

  • Save helloworld/11af600d6cce29fbd91f9726234b8b39 to your computer and use it in GitHub Desktop.

Select an option

Save helloworld/11af600d6cce29fbd91f9726234b8b39 to your computer and use it in GitHub Desktop.

Node.js Setup

Download Node.js

  1. Visit https://nodejs.org/en/download/current/

  2. Switch version to Current (Latest Features)

  3. Select the installer for your platform

  4. Go through the steps required to run the installer on your platform

Verify it works

  1. Open up terminal/command prompt.

  2. Enter the following sequence of commands (Run line by line. Do not include $ signs).

OSX / Linux
$ mkdir test
$ cd test
$ touch index.js
$ npm init --yes
$ echo "console.log('test')" > index.js
$ node index.js
Windows 
$ mkdir test
$ cd test
$ npm init --yes
$ echo console.log("test") > index.js
$ node index.js

You should see test outputted in your terminal, and the files index.js and package.json in your current directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment