npm Flashcards

1
Q

What is NPM?

A

the world’s largest software registry that allows developers to share/borrow packages

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

What is a package?

A

directory with one or more files in it and includes package json

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

packages required by your application in production; add dependencies to package.json file on the command line 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 newly installed package(s) get 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