NPM-INTRO Flashcards

1
Q

What is NPM?

A

Node package manager for Javascript platform. it puts modules in place so that node(elements) can find them, and manages dependency conflicts intelligently. It is also an online platform and a command line interface. ALWAYS YOU DO SHARE PACKAGES

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

What is a package?

A

reusable codes that can be used by many programmers. These are bits of reusable codes also known as modules. (just a directory) –> has something called 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
  1. go to the root directory of the package.

2. npm init with –yes or -y (JUST A MODIFIER) you can just do npm init

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 your application in production

you can add to a package by npm install package 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

it lists the dependency as one of the properties on pacckage.JSON.

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