NPM Flashcards
What is NPM?
npm is the world’s largest software registry.
What is a package?
A package is a file or directory that is described by a package.json file. A package must contain a package.json file in order to be published to the npm registry
How can you create a package.json with npm?
nevigate to folder in which you want to add package file and then use command “npm init –yes”
What is a dependency and how to you add one to a package?
dependencies are modules which are also required to run and develop application
“npm install “
What happens when you add a dependency to a package with npm?
package,json file is updated by adding information about the dependency in package.json file and add node_modules direcatory is added