npm Intro Flashcards
1
Q
What is NPM?
A
Open source software registry (it is the website, the CLI, and the registry)
2
Q
What is a package?
A
Bits of reusable code w a package.json
3
Q
How can you create a package.json with npm?
A
npm init -y
4
Q
What is a dependency and how to you add one to a package?
A
Something that your code delegates a task to
-to add: npm install
5
Q
What happens when you add a dependency to a package with npm?
A
It gets added to your package.json as a dependency and gets imported to a node_modules directory from the npm registry