npm Flashcards
What is NPM?
npm (stands for nothin) is the most popular package manager for node js, which is a huge repository of open source software that can be used by anyone for free
What is a package?
a pre bundled set of software aka built code that other people have written or you that can be used by others
How can you create a package.json with npm?
use the npm init command with the –yes or -y flag. For a list of default values, see “Default values extracted from the current directory”.
What is a dependency and how to you add one to a package?
A Dependency is an npm package the amount of packages you have (a dependency in general is another package of software that your package depends on)
What happens when you add a dependency to a package with npm?
it creates a nodes modules directory if there isn’t one it also updates that json file with its own dependansier and diwnloads all of the dependencies for that