Getting Started With Node Package Manager

This tutroial is part of a series of lessons on Node Package Manager.


You must have NodeJS installed before you can start this lesson. To install it, go to this page:
https://nodejs.org/en/download/

Then download and extract this zip file, we'll use it as a sample project throughout this lesson. When you extract the file, you should have a folder named npm, this will be our project folder.

Open the terminal (command line) and navigate into the npm folder.

Enter this command to create a default package.json file:

npm init --yes

If you look inside the npm folder you should see the package.json file. This file keeps track of all the NPM packages that are installed for you project. This is a JSON file, and you should be familiar with JavaScript Object Notation for when we add configuration settings to it.

NEXT TUTORIAL: NPM and Babel