npm Flashcards
1
Q
What is NPM?
A
allows developers to share their code and access code from other developers
2
Q
What is a package?
A
a directory containing the files and code
3
Q
How can you create a package.json with npm?
A
npm init -y or –y
4
Q
What is a dependency and how do you add one to a package?
A
dependencies are packages required for your project. use npm install.
5
Q
What happens when you add a dependency to a package with npm?
A
the node modules are added to your project