Create or verify a user named <username>
in the npm registry, and
save the credentials to the .npmrc
file.
Print the folder where npm will install executables.
This is the plumbing command called by npm link
and npm install
.
The npm bundle
command has been removed in 1.0, for the simple reason
that it is no longer necessary, as the default behavior is now to
install packages into the local space.
Used to add, list, or clear the npm cache folder.
A brief history.
npm's coding style is a bit unconventional. It is not different for difference's sake, but rather a carefully crafted style that is designed to reduce visual clutter and make bugs more apparent.
Enables tab-completion in all npm commands.
npm gets its configuration values from 5 sources, in this priority:
This command will update the npm registry entry for a package, providing a deprecation warning to all who attempt to install it.
So, you've decided to use npm to develop (and maybe publish/deploy) your project.
This command tries to guess at the likely location of a package's
documentation URL, and then tries to open it using the --browser
config param.
Opens the package folder in the default editor (or whatever you've
configured as the npm editor
config -- see npm-config(1)
.)
Spawn a subshell in the directory of the installed package specified.
Questions asked frequently.
npm puts various things on your computer. That's its job.
This command will search the npm markdown documentation files for the terms provided, and then list the results, sorted by relevance.
If supplied a topic, then show the appropriate documentation page.
This will ask you a bunch of questions, and then write a package.json for you.
This command installs a package, and any packages that it depends on.
This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just a JavaScript object literal.
Package linking is a two-step process.
This command will print to stdout all the versions of packages that are installed, as well as their dependencies, in a tree-structure.
npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently.
This command will check the registry to see if any (or, specific) installed packages are currently outdated.
Manage ownership of published packages.
For anything that's installable (that is, a package folder, tarball,
tarball url, name@tag, name@version, or name), this command will fetch
it to the cache, and then copy the tarball to the current working
directory as <name>-<version>.tgz
, and then write the filenames out to
stdout.
Print the prefix to standard out.
This command removes "extraneous" packages. If a package name is provided, then only packages matching one of the supplied names are removed.
Publishes a package to the registry so that it can be installed by name.
This command runs the npm build
command on the matched folders. This is useful
when you install a new version of node, and must recompile all your C++ addons with
the new binary.
To resolve packages by name and version, npm talks to a registry website that implements the CommonJS Package Registry specification for reading package info.
So sad to see you go.
This runs a package's "restart" script, if one was provided. Otherwise it runs package's "stop" script, if one was provided, and then the "start" script.
Print the effective node_modules
folder to standard out.
This runs an arbitrary command from a package's "scripts" object.
npm supports the "scripts" member of the package.json script, for the following scripts:
Search the registry for packages matching the search terms.
As a node module:
This runs a package's "start" script, if one was provided.
This runs a package's "stop" script, if one was provided.
If the specified package has a git repository url in its package.json
description, then this command will add it as a git submodule at
node_modules/<pkg name>
.
Tags the specified version of the package with the specified tag, or the
--tag
config if not specified.
This runs a package's "test" script, if one was provided.
This uninstalls a package, completely removing everything npm installed on its behalf.
This removes a package version from the registry, deleting its entry and removing the tarball.
This command will update all the packages listed to the latest version
(specified by the tag
config).
Run this in a package directory to bump the version and write the new data back to the package.json file.
This command shows data about a package and prints it to the stream
referenced by the outfd
config, which defaults to stdout.
Print the username
config to standard output.