]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/html/doc/README.html
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / html / doc / README.html
1 <!doctype html>
2 <html>
3   <title>README</title>
4   <meta charset="utf-8">
5   <link rel="stylesheet" type="text/css" href="../static/style.css">
6   <link rel="canonical" href="https://www.npmjs.org/doc/README.html">
7   <script async=true src="../../static/toc.js"></script>
8
9   <body>
10     <div id="wrapper">
11
12 <h1><a href="cli/npm.html">npm</a></h1> <p>a JavaScript package manager</p>
13 <p><a href="https://travis-ci.org/npm/npm"><img src="https://img.shields.io/travis/npm/npm/master.svg" alt="Build Status"></a></p>
14 <h2 id="synopsis">SYNOPSIS</h2>
15 <p>This is just enough info to get you up and running.</p>
16 <p>Much more info available via <code>npm help</code> once it&#39;s installed.</p>
17 <h2 id="important">IMPORTANT</h2>
18 <p><strong>You need node v0.10 or higher to run this program.</strong></p>
19 <p>To install an old <strong>and unsupported</strong> version of npm that works on node 0.3
20 and prior, clone the git repo and dig through the old tags and branches.</p>
21 <p><strong>npm is configured to use npm, Inc.&#39;s public package registry at
22 <a href="https://registry.npmjs.org">https://registry.npmjs.org</a> by default.</strong></p>
23 <p>You can configure npm to use any compatible registry you
24 like, and even run your own registry. Check out the <a href="https://docs.npmjs.com/misc/registry">doc on
25 registries</a>.</p>
26 <p>Use of someone else&#39;s registry may be governed by terms of use. The
27 terms of use for the default public registry are available at
28 <a href="https://www.npmjs.com">https://www.npmjs.com</a>.</p>
29 <h2 id="super-easy-install">Super Easy Install</h2>
30 <p>npm is bundled with <a href="http://nodejs.org/download/">node</a>.</p>
31 <h3 id="windows-computers">Windows Computers</h3>
32 <p><a href="http://nodejs.org/download/">Get the MSI</a>.  npm is in it.</p>
33 <h3 id="apple-macintosh-computers">Apple Macintosh Computers</h3>
34 <p><a href="http://nodejs.org/download/">Get the pkg</a>.  npm is in it.</p>
35 <h3 id="other-sorts-of-unices">Other Sorts of Unices</h3>
36 <p>Run <code>make install</code>.  npm will be installed with node.</p>
37 <p>If you want a more fancy pants install (a different version, customized
38 paths, etc.) then read on.</p>
39 <h2 id="fancy-install-unix-">Fancy Install (Unix)</h2>
40 <p>There&#39;s a pretty robust install script at
41 <a href="https://www.npmjs.com/install.sh">https://www.npmjs.com/install.sh</a>.  You can download that and run it.</p>
42 <p>Here&#39;s an example using curl:</p>
43 <pre><code class="lang-sh">curl -L https://www.npmjs.com/install.sh | sh
44 </code></pre>
45 <h3 id="slightly-fancier">Slightly Fancier</h3>
46 <p>You can set any npm configuration params with that script:</p>
47 <pre><code class="lang-sh">npm_config_prefix=/some/path sh install.sh
48 </code></pre>
49 <p>Or, you can run it in uber-debuggery mode:</p>
50 <pre><code class="lang-sh">npm_debug=1 sh install.sh
51 </code></pre>
52 <h3 id="even-fancier">Even Fancier</h3>
53 <p>Get the code with git.  Use <code>make</code> to build the docs and do other stuff.
54 If you plan on hacking on npm, <code>make link</code> is your friend.</p>
55 <p>If you&#39;ve got the npm source code, you can also semi-permanently set
56 arbitrary config keys using the <code>./configure --key=val ...</code>, and then
57 run npm commands by doing <code>node cli.js &lt;cmd&gt; &lt;args&gt;</code>.  (This is helpful
58 for testing, or running stuff without actually installing npm itself.)</p>
59 <h2 id="windows-install-or-upgrade">Windows Install or Upgrade</h2>
60 <p>You can download a zip file from <a href="https://github.com/npm/npm/releases">https://github.com/npm/npm/releases</a>, and
61 unpack it in the <code>node_modules\npm\</code> folder inside node&#39;s installation folder.</p>
62 <p>To upgrade to npm 2, follow the Windows upgrade instructions in
63 the npm Troubleshooting Guide:</p>
64 <p><a href="https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows">https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows</a></p>
65 <p>If that&#39;s not fancy enough for you, then you can fetch the code with
66 git, and mess with it directly.</p>
67 <h2 id="installing-on-cygwin">Installing on Cygwin</h2>
68 <p>No.</p>
69 <h2 id="uninstalling">Uninstalling</h2>
70 <p>So sad to see you go.</p>
71 <pre><code class="lang-sh">sudo npm uninstall npm -g
72 </code></pre>
73 <p>Or, if that fails,</p>
74 <pre><code class="lang-sh">sudo make uninstall
75 </code></pre>
76 <h2 id="more-severe-uninstalling">More Severe Uninstalling</h2>
77 <p>Usually, the above instructions are sufficient.  That will remove
78 npm, but leave behind anything you&#39;ve installed.</p>
79 <p>If you would like to remove all the packages that you have installed,
80 then you can use the <code>npm ls</code> command to find them, and then <code>npm rm</code> to
81 remove them.</p>
82 <p>To remove cruft left behind by npm 0.x, you can use the included
83 <code>clean-old.sh</code> script file.  You can run it conveniently like this:</p>
84 <pre><code class="lang-sh">npm explore npm -g -- sh scripts/clean-old.sh
85 </code></pre>
86 <p>npm uses two configuration files, one for per-user configs, and another
87 for global (every-user) configs.  You can view them by doing:</p>
88 <pre><code class="lang-sh">npm config get userconfig   # defaults to ~/.npmrc
89 npm config get globalconfig # defaults to /usr/local/etc/npmrc
90 </code></pre>
91 <p>Uninstalling npm does not remove configuration files by default.  You
92 must remove them yourself manually if you want them gone.  Note that
93 this means that future npm installs will not remember the settings that
94 you have chosen.</p>
95 <h2 id="more-docs">More Docs</h2>
96 <p>Check out the <a href="https://docs.npmjs.com/">docs</a>,
97 especially the <a href="https://docs.npmjs.com/misc/faq">faq</a>.</p>
98 <p>You can use the <code>npm help</code> command to read any of them.</p>
99 <p>If you&#39;re a developer, and you want to use npm to publish your program,
100 you should <a href="https://docs.npmjs.com/misc/developers">read this</a></p>
101 <h2 id="bugs">BUGS</h2>
102 <p>When you find issues, please report them:</p>
103 <ul>
104 <li>web:
105 <a href="https://github.com/npm/npm/issues">https://github.com/npm/npm/issues</a></li>
106 </ul>
107 <p>Be sure to include <em>all</em> of the output from the npm command that didn&#39;t work
108 as expected.  The <code>npm-debug.log</code> file is also helpful to provide.</p>
109 <p>You can also look for isaacs in #node.js on irc://irc.freenode.net.  He
110 will no doubt tell you to put the output in a gist or email.</p>
111 <h2 id="see-also">SEE ALSO</h2>
112 <ul>
113 <li><a href="cli/npm.html">npm(1)</a></li>
114 <li><a href="misc/npm-faq.html">npm-faq(7)</a></li>
115 <li><a href="cli/npm-help.html">npm-help(1)</a></li>
116 <li><a href="misc/npm-index.html">npm-index(7)</a></li>
117 </ul>
118
119 </div>
120
121 <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
122 <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
123 <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
124 <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
125 <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
126 <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
127 <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
128 <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
129 </table>
130 <p id="footer"><a href="../doc/README.html">README</a> &mdash; npm@2.15.11</p>
131