npm Flashcards
1
Q
What is NPM?
A
npm is the world’s largest software registry. Open source developers from every continent use npm to share and borrow packages, and many organizations use npm to manage private development as well.
2
Q
What is a package?
A
A package is a file or directory that is described by a package.json file
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
These are the packages that your package needs to run, so they will be installed when people run npm install PACKAGE-NAME.
5
Q
What happens when you add a dependency to a package with npm?
A
adds to package.json and creates node_modules