npm-intro Flashcards
What is NPM?
Npm is the world’s largest software registry. Open source developers use npm to share and borrow packages and many organizations use npm to manage privat development. It consists of three components: the website, the command line interface (cli), and the registry.
What is a package?
A package is a file or directory that is described by a package.json file
How can you create a package.json with npm?
Npm init –yes
What is a dependency and how to you add one to a package?
A dependency is the packages required by your application in production. To add one to a package: npm install
What happens when you add a dependency to a package with npm?
Package.json gets updated with the dependency; makes node_modules folder that includes the package you installed