
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.
Explore npm mastery by managing multiple node versions on one system, switching between legacy node six and modern twelve to fourteen, and handling binaries compiled with node-gyp safely.
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.
Explore how npm installs node modules from the npm registry and GitHub, populates the node_modules folder, and understands dependencies, source code, and minified versus non-minified versions.
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.
Install packages with npm install or the shorthand npm i, and see how npm avoids reinstalling already installed packages, audits updates, and reports when a package is not available.
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.
Differentiate local and global npm modules, learn how the -g flag installs global packages, and understand accessing global tools from any script or command line.
Explore how npm dependencies work, including types of dependencies and semantic versioning, to master managing packages with npm.
Explore how npm uses semantic versioning: major versions imply breaking API changes, minor adds backwards-compatible features, and patches fix bugs; yet many packages may violate it.
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.
Learn how to change the global npm installation location by setting a new prefix, moving the global node_modules directory, and updating PATH to avoid sudo and improve security.
Learn how npm caching stores modules in the home directory's .npm folder to speed installs, and when to clear the cache with npm cache clean --force.
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.