
Explore what npm is, a Node package manager, and how to use it efficiently for front end development, including alternatives, global modules, and CLI tooling in this introductory series.
Discover what NPM is: a standard node package manager backed by Microsoft via GitHub, hosting open-source packages and providing a CLI to fetch, install, and manage them.
Compare npm and yarn, two open-source package managers; yarn, created by Facebook, speeds up development with caching, while npm, owned by Microsoft, shines on production, with both now largely similar.
Discover how to download and install node and npm on Windows, macOS, and Linux, with guidance on linking node and verifying npm availability.
Learn to manage multiple node versions with the n tool on linux or mac, including installation, switching between versions, updating npm, and windows alternatives via another manager.
Discover how npm installs a module by fetching the tarball from the registry, extracting it to node_modules, and verifying integrity with sha512, ensuring tamper protection.
Discover how npm relies on package.json to track dependencies and manage installs, removals, and updates, including transitive dependencies and why the file is essential for project maintenance.
Learn how to initialize a package.json quickly with npm init, accepting default values by pressing enter. See how npm install updates dependencies and creates a log file.
Learn to remove local npm packages using npm remove or uninstall, and see the package.json reflect the removal. The video notes npm won’t error when uninstalling a non-existent package.
Explore how npm dependencies work, including types of dependencies and semantic versioning, to master managing packages with npm.
Explore why NPM uses a package-lock.json to lock dependencies and their exact versions and integrity hashes. See how this prevents production surprises when environments differ and semantic versioning evolves.
Discover how semantic versioning in package.json guides npm installs, using the caret and delta symbols to control upgrades and keep major and minor versions fixed while patch updates occur.
Explore dependencies in package.json, organized as key-value pairs of package name and version. See how npm install brings these dependencies into any environment, and understand dev dependencies next.
Discover how npm differentiates dependencies from dev dependencies and when to use npm install --save-dev. In production mode, dev dependencies are excluded to keep runtime bundles lean.
Master peer dependencies and semantic versioning, and learn how npm warns when the host lacks react for react-dom. Rely on the host to avoid version conflicts and duplicates.
Explore npm scripts, learn what they are and how to use them, and get started creating your own custom npm scripts.
Explore how npm scripts live in package.json as a key-value scripts object. Learn how built-in keywords like start and publish trigger actions, and how npm run calls custom scripts.
Discover how npx lets you run local binaries and global binaries without installing them, and how npm scripts via package.json access tools like create react app.
Explore the miscellaneous section introduction and cover standalone topics that don’t fit into a full section, with a preview of the next video.
Finish this course with a recap of npm's role in web development and gain a fundamental understanding to use npm effectively in your daily toolkit.
NPM is a great tool used all around the web development ecosystem. Whether it's frontend or backend, Node or React, Angular, or TypeScript, you're gonna make use of NPM all along. It is a great idea to add this useful tool to your bucket of mastery as it will save you a ton of time while working/building/running your apps.
We would be going over the core basics of NPM and how it works:
1. What is NPM and how it works
2. Understanding under the hood things with NPM
3. Working with NPX
4. Package and package-lock files, why they're needed
5. Useful NPM commands
6. Local, global node modules
7. Caching, moving global modules directories, and more
If you want to be a good web developer in 2020, this tool is a must to know in-depth! This course is regularly updated and maintained to always keep you on the edge! Best practices and latest toolkit included.