From the course: Learning npm: A Package Manager
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Defining a package and npm
From the course: Learning npm: A Package Manager
Defining a package and npm
- [Instructor] If you've ever built applications with JavaScript, React, Angular, Node.js, or Express, you've used the package manager to install dependencies. This package manager is called npm. It comes pre-install with Node.js and we'll go over how to install it shortly. Dependencies or packages, they're used in all your projects and come in with a package.json file, such as this one. This file is the map of your project. It tells who created it, the version, and the packages that needs to be installed. So what is really a package, or a module, or a dependency? First off, don't be intimidated by people who use these terms. They're nearly the same thing. They're simply a file or multiple files combined together to form a package that represents a specific function. If we go to www.npmjs.com, we can search this directory of packages for any function we would like to add to our project. For example, if you search for css,…