npm-intro Flashcards
1
Q
What is NPM?
A
A way to reuse code from other developers and to publish the code you have with other developers
2
Q
What is a package?
A
A storage place for code made with npm
3
Q
How can you create a package.json with npm?
A
npm init –yes
4
Q
What is a dependency and how do 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. An example would be if you used jQuery in your project. If someone doesn’t have jQuery installed, then it wouldn’t work. To save as a dependency, use npm install –save.
5
Q
What happens when you add a dependency to a package with npm?
A
I don’t know.