NPM Flashcards
1
Q
What is NPM?
A
npm is the world’s largest software registry
2
Q
What is a package?
A
directory with one or more files in it
3
Q
How can you create a package.json with npm?
A
npm init –yes
4
Q
What is a dependency and how to you add one to a package?
A
npm install (name)
5
Q
What happens when you add a dependency to a package with npm?
A
downloads package, puts it in the node_modules directory, adds it under dependency in the package.json file, package-lock.json