Skip to content

Instantly share code, notes, and snippets.

@alexkahn
Created November 24, 2015 16:56
Show Gist options
  • Save alexkahn/48bca7d6c6e57393df15 to your computer and use it in GitHub Desktop.
Save alexkahn/48bca7d6c6e57393df15 to your computer and use it in GitHub Desktop.
Get Started with Node.js

Getting Started with Node.js

This short guide will get you familiar with Node.js so we can go do some fun stuff.

Installation

OSX

brew install node

*nix

apt-get install node yum install node

Windows

Go to the nodejs.org website and download the MSI or use something like NuGet or Chocolatey

Verify your installation worked correctly and the Node.js binary is on your PATH:

node -v
npm -v

NPM is the Node Package Manager (like gem, pip, or maven)

Install your first package with:

npm install -g learnyounode

This is a command line tutorial that will guide you through the basics of working with Node.

The -g means to install this into the global npm directory so that learnyounode will be on your PATH.

Type learnyounode into your terminal and work through as many of the exercises as you can. If you get stuck, bring those questions.

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