npm-intro Flashcards

1
Q

What is NPM?

A

A way to reuse code from other developers and to publish the code you have with 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 storage place for code made with npm

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

These are the packages that your package needs to run, so they will be installed when people run npm install Package-name. An example would be if you used jQuery in your project. If someone doesn’t have jQuery installed, then it wouldn’t work. To save as a dependency, use npm install –save.

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

I don’t know.

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