Understanding NPM - Node.js Package Manager
4.4 (123 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
13,008 students enrolled

Understanding NPM - Node.js Package Manager

Understand and practice NPM. Learn how to use NPM in Node.js, how to install NPM packages, how to configure NPM scripts.
4.4 (123 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
13,008 students enrolled
Created by Bogdan Stashchuk
Last updated 12/2018
English
English [Auto-generated]
Current price: Free Original price: $129.99 Discount: 100% off
30-Day Money-Back Guarantee
This course includes
  • 2.5 hours on-demand video
  • 2 articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to Udemy's top 3,000+ courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Initialize any project using NPM init
  • Install project dependencies

  • Understand what is the difference between dependencies and development dependencies

  • Explain what is Semantic Versioning and what different kinds of packages versions mean
  • Explain difference between Browser Application and Server Package
  • Understand purpose of the "package-lock" file
  • Update project dependencies
  • Configure NPM scripts and execute them
  • Combine NPM scripts into the one script
  • Explain what is executable script and how it is executed on the Mac and on Windows
Course content
Expand all 40 lectures 02:18:37
+ Installation of the NPM packages
5 lectures 21:58
PRACTICE - Install package in the project
04:42
CHALLENGE - Install Semver package
00:37
CHALLENGE - Install Semver Package - SOLUTION
11:04
PRACTICE - Install Browserslist - package with own dependencies
03:22
+ Dependencies vs Development Dependencies
7 lectures 36:43
LECTURE - Dependencies and Development Dependencies
02:43
PRACTICE - Examine Development Dependencies
06:21
PRACTICE - Browser App vs Server Package
04:41
CHALLENGE - Clock Browser Application
01:42
✓ CHALLENGE - Clock Browser Application - SOLUTION
12:07
LECTURE - Clock Challenge Summary
02:19
LECTURE - Browser App vs Public Package
06:50
+ NPM packages versions and package-lock.json file
7 lectures 26:14
PRACTICE - Exploring Package Information and Versions
02:44
PRACTICE - Installing Specific Package Version
03:25
LECTURE - Why package-lock.json file is needed?
04:28
CHALLENGE - Reinstall old package version without lock file
00:58
✓ CHALLENGE - Reinstall old package version without lock file - SOLUTION
03:07
LECTURE - How lock file is handled
10:55
LECTURE - Lock file summary
00:37
+ Updating NPM packages
3 lectures 07:19
LECTURE - Update NPM packages overview
01:32
CHALLENGE - Update project dependencies
00:40
✓ CHALLENGE - Update project dependencies - SOLUTION
05:07
+ NPM Scripts
7 lectures 21:19
LECTURE - Introduction to the NPM scripts
02:49
PRACTICE - Start NPM script
02:21
CHALLENGE - Create prestart script
01:28
✓ CHALLENGE - Create prestart script - SOLUTION
07:13
PRACTICE - Custom NPM scripts
02:48
CHALLENGE - Run NPM scripts simultaneously
01:15
✓ CHALLENGE - Run NPM scripts simultaneously - SOLUTION
03:25
+ Executable scripts in the NPM
5 lectures 10:36
LECTURE - NPM .bin Folder with Executable Scripts
04:45
PRACTICE - Explore .bin Folder on the Mac
02:48
PRACTICE - Explore .bin Folder on Windows
01:28
LECTURE - NPM Scripts Wrap-Up
01:18
LECTURE - Additional NPM topics
00:17
Requirements
  • Basic JavaScript knowledge is desirable but not required
  • Any computer - Mac or PC
Description

In this course I will explain you what is NPM and how it is used.

You will learn how to initialize new project, how to install new dependencies and explore their child dependencies.

We will also discuss what is Semantic Versioning and what Major, Minor and Patch versions mean.

You will also understand what is the purpose of the package-lock.json file.

I will explain you what is the purpose of the NPM scripts and how they should be used. We will talk about built-in NPM scripts and custom script. Also we will combine several NPM scripts in a one using npm-run-all external package.

You will understand what is executable script and what is the purpose of the .bin folder in the node_modules folder. I will explain you what is shebang line and how it is used on the Unix-based system and on Windows.

Happy learning!

Who this course is for:
  • JavaScript developers who want to know how to properly use NPM