NPM Flashcards

1
Q

What is NPM?

A

The command line client, the website, or the package registry

The world’s largest software registry; to share and 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; has a 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

Go to root directory of package and use ‘npm init –yes’ (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 to you add one to a package?

A

Packages required by application; Use ‘npm install dependency-name’

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

Created a ‘node_modules’ directory

Created dependency in package.json file

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