NPM-INTRO Flashcards
What is NPM?
Node package manager for Javascript platform. it puts modules in place so that node(elements) can find them, and manages dependency conflicts intelligently. It is also an online platform and a command line interface. ALWAYS YOU DO SHARE PACKAGES
What is a package?
reusable codes that can be used by many programmers. These are bits of reusable codes also known as modules. (just a directory) –> has something called package.json
How can you create a package.json with npm?
- go to the root directory of the package.
2. npm init with –yes or -y (JUST A MODIFIER) you can just do npm init
What is a dependency and how to you add one to a package?
Packages required by your application in production
you can add to a package by npm install package name.
What happens when you add a dependency to a package with npm?
it lists the dependency as one of the properties on pacckage.JSON.