The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.
Please select the desired protocol below to get the URL.
This URL has Read-Only access.
main_repo / deps / npm / html / doc / cli / npm-config.html @ 5e865191
History | View | Annotate | Download (2.94 KB)
1 |
<!doctype html>
|
---|---|
2 |
<html>
|
3 |
<title>npm-config</title> |
4 |
<meta http-equiv="content-type" value="text/html;utf-8"> |
5 |
<link rel="stylesheet" type="text/css" href="../../static/style.css"> |
6 |
|
7 |
<body>
|
8 |
<div id="wrapper"> |
9 |
<h1><a href="../cli/npm-config.html">npm-config</a></h1> <p>Manage the npm configuration files</p> |
10 |
|
11 |
<h2 id="SYNOPSIS">SYNOPSIS</h2> |
12 |
|
13 |
<pre><code>npm config set <key> <value> [--global] |
14 |
npm config get <key> |
15 |
npm config delete <key> |
16 |
npm config list |
17 |
npm config edit |
18 |
npm get <key> |
19 |
npm set <key> <value> [--global]</code></pre> |
20 |
|
21 |
<h2 id="DESCRIPTION">DESCRIPTION</h2> |
22 |
|
23 |
<p>npm gets its config settings from the command line, environment
|
24 |
variables, <code>npmrc</code> files, and in some cases, the <code>package.json</code> file.</p> |
25 |
|
26 |
<p>See <a href="../files/npmrc.html">npmrc(5)</a> for more information about the npmrc files.</p> |
27 |
|
28 |
<p>See <code><a href="../misc/npm-config.html">npm-config(7)</a></code> for a more thorough discussion of the mechanisms |
29 |
involved.</p>
|
30 |
|
31 |
<p>The <code>npm config</code> command can be used to update and edit the contents |
32 |
of the user and global npmrc files.</p>
|
33 |
|
34 |
<h2 id="Sub-commands">Sub-commands</h2> |
35 |
|
36 |
<p>Config supports the following sub-commands:</p> |
37 |
|
38 |
<h3 id="set">set</h3> |
39 |
|
40 |
<pre><code>npm config set key value</code></pre> |
41 |
|
42 |
<p>Sets the config key to the value.</p> |
43 |
|
44 |
<p>If value is omitted, then it sets it to "true".</p> |
45 |
|
46 |
<h3 id="get">get</h3> |
47 |
|
48 |
<pre><code>npm config get key</code></pre> |
49 |
|
50 |
<p>Echo the config value to stdout.</p> |
51 |
|
52 |
<h3 id="list">list</h3> |
53 |
|
54 |
<pre><code>npm config list</code></pre> |
55 |
|
56 |
<p>Show all the config settings.</p> |
57 |
|
58 |
<h3 id="delete">delete</h3> |
59 |
|
60 |
<pre><code>npm config delete key</code></pre> |
61 |
|
62 |
<p>Deletes the key from all configuration files.</p> |
63 |
|
64 |
<h3 id="edit">edit</h3> |
65 |
|
66 |
<pre><code>npm config edit</code></pre> |
67 |
|
68 |
<p>Opens the config file in an editor. Use the <code>--global</code> flag to edit the |
69 |
global config.</p>
|
70 |
|
71 |
<h2 id="SEE-ALSO">SEE ALSO</h2> |
72 |
|
73 |
<ul><li><a href="../files/npm-folders.html">npm-folders(5)</a></li><li><a href="../misc/npm-config.html">npm-config(7)</a></li><li><a href="../files/package.json.html">package.json(5)</a></li><li><a href="../files/npmrc.html">npmrc(5)</a></li><li><a href="../cli/npm.html">npm(1)</a></li></ul> |
74 |
</div>
|
75 |
<p id="footer">npm-config — npm@1.3.4</p> |
76 |
<script>
|
77 |
;(function () {
|
78 |
var wrapper = document.getElementById("wrapper")
|
79 |
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
|
80 |
.filter(function (el) {
|
81 |
return el.parentNode === wrapper
|
82 |
&& el.tagName.match(/H[1-6]/)
|
83 |
&& el.id
|
84 |
})
|
85 |
var l = 2
|
86 |
, toc = document.createElement("ul")
|
87 |
toc.innerHTML = els.map(function (el) {
|
88 |
var i = el.tagName.charAt(1)
|
89 |
, out = ""
|
90 |
while (i > l) {
|
91 |
out += "<ul>"
|
92 |
l ++
|
93 |
}
|
94 |
while (i < l) {
|
95 |
out += "</ul>"
|
96 |
l --
|
97 |
}
|
98 |
out += "<li><a href='#" + el.id + "'>" +
|
99 |
( el.innerText || el.text || el.innerHTML)
|
100 |
+ "</a>"
|
101 |
return out
|
102 |
}).join("\n")
|
103 |
toc.id = "toc"
|
104 |
document.body.appendChild(toc)
|
105 |
})()
|
106 |
</script>
|