NPM Flashcards
1
Q
What is NPM?
A
Node package manager - sharing reusing code people wrote
2
Q
What is a package?
A
Self contained code bundled to deliver and use
3
Q
How can you create a package.json with npm?
A
npm init –yes, type it in
4
Q
What is a dependency and how do you add one to a package?
A
another package that your package needs in order to work, Npm install packagename
5
Q
What happens when you add a dependency to a package with npm?
A
Puts it in node-modules directory
Adds as a dependency in the json file and adds any other dependencies that package may need
Creates a file called package lock