comes pre-installed with Node.js. • A package manager manages assets (i.e. installs, upgrades, removes, manages dependencies) used in a program. • Npm is used to install, uninstall and manage JavaScript modules called packages from the npm registry (https://www.npmjs.org/). • The npm registry is an online repository of npm packages that can be installed from the command line tool. • The npm registry can range from simple helper libraries, like underscore.js, to task runners, like grunt.js.
• a) a folder containing a program described by a package.json file • b) a gzipped tarball containing (a) • c) a url that resolves to (b) • d) a <name>@<version> that is published on the registry with (c) • e) a <name>@<tag> that points to (d) • f) a <name> that has a "latest" tag satisfying (e) • g) a git url that, when cloned, results in (a).
in the root of a package. It tells npm how the package is structured and what to do to install it. myapplication bin myapplication.js lib main.js package.json README.md Example of npm package directory structure
For The Uninitiated Front-End Developer: http://tech.pro/tutorial/1190/package-managers-an-introductory- guide-for-the-uninitiated-front-end-developer#what_is_npm • Interactive guide for exploring properties of package.json file: http:// browsenpm.org/package.json