NPM Flashcards

1
Q

What is NPM?

A

npm is the world’s largest software registry.. website, command line and package registry

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

What is a package?

A

A package is a file or directory that is described by a package.json file

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 do you add one to a package?

A

You can add dependencies to a package.json file from the command line or by manually editing the package.json file. (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 newly install package(s) gets added to the list of dependencies in your package.json file

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