Skip to content

To view all of the 300+ tutorials on Simple Dev, sign up for a 10-day free trial below.

npm Basics


Below you will find a collection of tutorials teaching the basics of npm, the package manager.

Before You Start

These tutorials assume you understand the basics of using the terminal.


You can download exercises to go along with these tutorials on our npm exercises GitHub repository. You don’t have to know how to use GitHub to use them. Just click the green Code button in the corner and click the Download ZIP option. Then unzip the folder and open it in your text editor.


Why should I use npm?

Learn why you should use npm.

npm Glossary

Learn key terms used with npm.


Install Node and npm

Learn how to install Node and npm.

Check Node and npm version

node -v
npm -v

Create package.json file

npm init

Local Packages

Install package locally

npm install package-name

Run local package

npx package-name [options/arguments]

Update local package

npm update package-name

Uninstall local package

npm uninstall package-name

Global Packages

Install package globally

npm install -g package-name

List global packages

npm list -g --depth 0

Update global package

npm update -g package-name

Uninstall global package

npm uninstall -g package-name


Learn more about a command

npm help term

Using npm with Git

Learn how to use npm with Git.