npm Flashcards

1
Q

What is NPM?

A

Public software registry. You can use npm to share and borrow packages. a way to share code with other developers. cli, registry, and website

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

What is a package?

A

reusable code. Its a directory with one or more files in it.

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 –yes

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

What is a dependency and how to you add one to a package?

A

dependencies are packages that other packages need to perform a given task. you can add dependencies by using 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

node_modules gets added to that directory. that dependency is added within the package.json file.

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