npm Flashcards

1
Q

What is NPM?

A

allows developers to share their code and access code from other developers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a package?

A

a directory containing the files and code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you create a package.json with npm?

A

npm init -y or –y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens when you add a dependency to a package with npm?

A

the node modules are added to your project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly