Understanding NPM Nodejs Package Manager

Understand and practice NPM. Learn how to use NPM in Node.js, how to install NPM packages, how to configure NPM scripts.
Understanding NPM Nodejs Package Manager
File Size :
2.61 GB
Total length :
2h 20m

Category

Instructor

Bogdan Stashchuk | Software Engineer, MBA, PhD

Language

Last update

3/2023

Ratings

4.5/5

Understanding NPM Nodejs Package Manager

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

Understanding NPM Nodejs Package Manager

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.This course is designed to provide students with a comprehensive understanding of NPM, the Node.js package manager. Students will learn how to use NPM to manage Node.js packages and create their own packages.The course begins with an overview of NPM and its role in the Node.js ecosystem. Students will learn how to install and configure NPM, including setting up a new Node.js project and managing project dependencies using NPM.The course then dives into more advanced NPM features, including package versioning and semantic versioning. Throughout the course, students will gain hands-on experience working with NPM through a series of practical exercises and labs. By the end of the course, students will have a solid understanding of NPM and be able to effectively manage Node.js packages in real-world scenarios.Learning Objectives:Understand NPM and its role in the Node.js ecosystemInstall and configure NPM and create a new Node.js projectManage project dependencies using NPMYou 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.After this course you will gain a deep knowledge about NPM and learn how to use it on practice.

Overview

Section 1: Introduction

Lecture 1 LECTURE – Intro

Lecture 2 Let’s get connected! Join the Learning Community

Lecture 3 LECTURE – Course Navigation.mp4

Lecture 4 PRACTICE – Practice Exercises (IMPORTANT)

Section 2: Introduction to the NPM

Lecture 5 PRACTICE – Exploring NPM packages

Lecture 6 LECTURE – Package.json and init

Lecture 7 LECTURE – Semantic Versioning

Section 3: Installation of the NPM packages

Lecture 8 LECTURE – Packages Installation

Lecture 9 PRACTICE – Install package in the project

Lecture 10 CHALLENGE – Install Semver package

Lecture 11 CHALLENGE – Install Semver Package – SOLUTION

Lecture 12 PRACTICE – Install Browserslist – package with own dependencies

Section 4: Dependencies vs Development Dependencies

Lecture 13 LECTURE – Dependencies and Development Dependencies

Lecture 14 PRACTICE – Examine Development Dependencies

Lecture 15 PRACTICE – Browser App vs Server Package

Lecture 16 CHALLENGE – Clock Browser Application

Lecture 17 ✓ CHALLENGE – Clock Browser Application – SOLUTION

Lecture 18 LECTURE – Clock Challenge Summary

Lecture 19 LECTURE – Browser App vs Public Package

Section 5: NPM packages versions and package-lock.json file

Lecture 20 PRACTICE – Exploring Package Information and Versions

Lecture 21 PRACTICE – Installing Specific Package Version

Lecture 22 LECTURE – Why package-lock.json file is needed?

Lecture 23 CHALLENGE – Reinstall old package version without lock file

Lecture 24 ✓ CHALLENGE – Reinstall old package version without lock file – SOLUTION

Lecture 25 LECTURE – How lock file is handled

Lecture 26 LECTURE – Lock file summary

Section 6: Updating NPM packages

Lecture 27 LECTURE – Update NPM packages overview

Lecture 28 CHALLENGE – Update project dependencies

Lecture 29 ✓ CHALLENGE – Update project dependencies – SOLUTION

Section 7: NPM Scripts

Lecture 30 LECTURE – Introduction to the NPM scripts

Lecture 31 PRACTICE – Start NPM script

Lecture 32 CHALLENGE – Create prestart script

Lecture 33 ✓ CHALLENGE – Create prestart script – SOLUTION

Lecture 34 PRACTICE – Custom NPM scripts

Lecture 35 CHALLENGE – Run NPM scripts simultaneously

Lecture 36 ✓ CHALLENGE – Run NPM scripts simultaneously – SOLUTION

Section 8: Executable scripts in the NPM

Lecture 37 LECTURE – NPM .bin Folder with Executable Scripts

Lecture 38 PRACTICE – Explore .bin Folder on the Mac

Lecture 39 PRACTICE – Explore .bin Folder on Windows

Lecture 40 LECTURE – NPM Scripts Wrap-Up

Section 9: Wrap up

Lecture 41 Bonus Lecture

JavaScript developers who want to know how to properly use NPM

Course Information:

Udemy | English | 2h 20m | 2.61 GB
Created by: Bogdan Stashchuk | Software Engineer, MBA, PhD

You Can See More Courses in the Developer >> Greetings from CourseDown.com

New Courses

Scroll to Top