Skip to main content

Understanding NPM - Node.js Package Manager

2h 18m 39s
English
Paid

Understand NPM, the Node.js Package Manager, with this comprehensive course. You'll learn how to initialize new projects, install new dependencies, and explore their child dependencies. We'll dive into Semantic Versioning and explain the significance of Major, Minor, and Patch versions. Additionally, you'll understand the purpose of the package-lock.json file and discover how NPM scripts are used.

Getting Started with NPM

Initializing a New Project

Learn how to initialize a new Node.js project using NPM. Understand the basic commands to set up your project structure efficiently.

Installing and Managing Dependencies

Discover the process of installing new dependencies, managing them, and understanding their child dependencies to ensure smooth project development.

Understanding Semantic Versioning

Grasp the concept of Semantic Versioning to maintain clear versioning in your projects. Learn about:

  • Major Versions: What changes they include and when to update.
  • Minor Versions: Adding backward-compatible features.
  • Patch Versions: Bug fixes and other minor improvements.

The Role of package-lock.json

Understand the importance of the package-lock.json file and its role in maintaining package consistency across various environments.

Mastering NPM Scripts

Built-in and Custom Scripts

Explore the use of NPM scripts to automate tasks in your projects. Learn about the built-in scripts and how to create your custom scripts for efficiency.

Combining Scripts with npm-run-all

Learn how to combine multiple NPM scripts using the npm-run-all package, allowing for streamlined task execution.

Executable Scripts and .bin Folder

The Purpose and Use of the .bin Folder

Understand what executable scripts are and the role of the .bin folder within the node_modules directory.

Shebang Line Usage

Gain insights into the shebang line and its usage in Unix-based systems and Windows, facilitating effective script execution.

About the Author: udemy

udemy thumbnail
By connecting students all over the world to the best instructors, Udemy is helping individuals reach their goals and pursue their dreams. Udemy is the leading global marketplace for teaching and learning, connecting millions of students to the skills they need to succeed. Udemy helps organizations of all kinds prepare for the ever-evolving future of work. Our curated collection of top-rated business and technical courses gives companies, governments, and nonprofits the power to develop in-house expertise and satisfy employees’ hunger for learning and development.

Watch Online 38 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 38 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: LECTURE - Intro
All Course Lessons (38)
#Lesson TitleDurationAccess
1
LECTURE - Intro Demo
03:14
2
LECTURE - Course Navigation.mp4
01:28
3
PRACTICE - Exploring NPM packages
01:33
4
LECTURE - Package.json and init
03:12
5
LECTURE - Semantic Versioning
04:46
6
LECTURE - Packages Installation
02:14
7
PRACTICE - Install package in the project
04:43
8
CHALLENGE - Install Semver package
00:38
9
CHALLENGE - Install Semver Package - SOLUTION
11:05
10
PRACTICE - Install Browserslist - package with own dependencies
03:23
11
LECTURE - Dependencies and Development Dependencies
02:44
12
PRACTICE - Examine Development Dependencies
06:22
13
PRACTICE - Browser App vs Server Package
04:42
14
CHALLENGE - Clock Browser Application
01:43
15
CHALLENGE - Clock Browser Application - SOLUTION
12:08
16
LECTURE - Clock Challenge Summary
02:20
17
LECTURE - Browser App vs Public Package
06:51
18
PRACTICE - Exploring Package Information and Versions
02:45
19
PRACTICE - Installing Specific Package Version
03:26
20
LECTURE - Why package-lock.json file is needed?
04:30
21
CHALLENGE - Reinstall old package version without lock file
00:59
22
CHALLENGE - Reinstall old package version without lock file - SOLUTION
03:08
23
LECTURE - How lock file is handled
10:56
24
LECTURE - Lock file summary
00:38
25
LECTURE - Update NPM packages overview
01:33
26
CHALLENGE - Update project dependencies
00:41
27
CHALLENGE - Update project dependencies - SOLUTION
05:08
28
LECTURE - Introduction to the NPM scripts
02:50
29
PRACTICE - Start NPM script
02:22
30
CHALLENGE - Create prestart script
01:29
31
CHALLENGE - Create prestart script - SOLUTION
07:14
32
PRACTICE - Custom NPM scripts
02:49
33
CHALLENGE - Run NPM scripts simultaneously
01:16
34
CHALLENGE - Run NPM scripts simultaneously - SOLUTION
03:26
35
LECTURE - NPM .bin Folder with Executable Scripts
04:46
36
PRACTICE - Explore .bin Folder on the Mac
02:49
37
PRACTICE - Explore .bin Folder on Windows
01:29
38
LECTURE - NPM Scripts Wrap-Up
01:19
Unlock unlimited learning

Get instant access to all 37 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription