Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (19 sloc) 0.894 kB
0ce99a3 @isaacs Somehow lost the install doc. Restored
isaacs authored
1 npm-install(1) -- install a package
2 ===================================
3
4 ## SUMMARY
5
6 npm install <tarball>
7
8 ## DESCRIPTION
9
10 This installs the package, where `tarball` is a url or path to a `.tgz` file
11 that contains a package with a `package.json` file in the root.
12
13 This'll create some stuff in `$HOME/.node_libraries`. It supports installing
14 multiple versions of the same thing.
15
16 From here, you can do `require("foo-1.2.3")` where "foo" is the name of the
17 package, and "1.2.3" is the version you installed.
18
8629daa @isaacs Add pointers and make the install doc a bit more up to date
isaacs authored
19 If you use `npm activate foo 1.2.3` at that point, you could do simply
20 `require("foo")` to get the active version of the package.
21
22 Depending on the state of your `auto-activate` config variable, activate may
23 be automatically performed some or all of the time.
24
0ce99a3 @isaacs Somehow lost the install doc. Restored
isaacs authored
25 Installing by name and version alone is planned for the next version.
8629daa @isaacs Add pointers and make the install doc a bit more up to date
isaacs authored
26
27 See also:
28
29 * npm help config
30 * npm help activate
Something went wrong with that request. Please try again.