npm-intro Flashcards
What is NPM?
npm consists of three distinct components:
the website
the Command Line Interface (CLI)
the registry.
It’s an online repo for publishing of open source Nodejs projects.
What is a package?
A package is a bit of reusable code. It’s a directory with one or more files in it.
How do you create a package.json with npm?
Type the command ‘npm init’ in the terminal
What is a npm dependency?
Package required for for your application in production. Dev-dependencies are packages that are only needed for local development and testing. You add a dependency by installing a package
What happens when you add a dependency to a package with npm?
The package is listed in package.json as either a dependency(which is default) or as a dev-dependency.