NPM-intro Flashcards
1
Q
What is NPM?
A
publish, discover, install, and develop node programs
consists of the webiste, registry and CLI
2
Q
What is a package?
A
file or directory that is described by a package.json file.
3
Q
How can you create a package.json with npm?
A
npm init –yes
4
Q
What is a dependency and how to you add one to a package?
A
Packages required by your application in production
npm install
5
Q
What happens when you add a dependency to a package with npm?
A
it creates a directory called node modules with a bunch of files