]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/html/doc/misc/removing-npm.html
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / html / doc / misc / removing-npm.html
1 <!doctype html>
2 <html>
3   <title>removing-npm</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/misc/removing-npm.html">
7   <script async=true src="../../static/toc.js"></script>
8
9   <body>
10     <div id="wrapper">
11
12 <h1><a href="../cli/npm-removal.html">npm-removal</a></h1> <p>Cleaning the Slate</p>
13 <h2 id="synopsis">SYNOPSIS</h2>
14 <p>So sad to see you go.</p>
15 <pre><code>sudo npm uninstall npm -g
16 </code></pre><p>Or, if that fails, get the npm source code, and do:</p>
17 <pre><code>sudo make uninstall
18 </code></pre><h2 id="more-severe-uninstalling">More Severe Uninstalling</h2>
19 <p>Usually, the above instructions are sufficient.  That will remove
20 npm, but leave behind anything you&#39;ve installed.</p>
21 <p>If that doesn&#39;t work, or if you require more drastic measures,
22 continue reading.</p>
23 <p>Note that this is only necessary for globally-installed packages.  Local
24 installs are completely contained within a project&#39;s <code>node_modules</code>
25 folder.  Delete that folder, and everything is gone (unless a package&#39;s
26 install script is particularly ill-behaved).</p>
27 <p>This assumes that you installed node and npm in the default place.  If
28 you configured node with a different <code>--prefix</code>, or installed npm with a
29 different prefix setting, then adjust the paths accordingly, replacing
30 <code>/usr/local</code> with your install prefix.</p>
31 <p>To remove everything npm-related manually:</p>
32 <pre><code>rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
33 </code></pre><p>If you installed things <em>with</em> npm, then your best bet is to uninstall
34 them with npm first, and then install them again once you have a
35 proper install.  This can help find any symlinks that are lying
36 around:</p>
37 <pre><code>ls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm
38 </code></pre><p>Prior to version 0.3, npm used shim files for executables and node
39 modules.  To track those down, you can do the following:</p>
40 <pre><code>find /usr/local/{lib/node,bin} -exec grep -l npm \{\} \; ;
41 </code></pre><p>(This is also in the <a href="../../doc/README.html">README</a> file.)</p>
42 <h2 id="see-also">SEE ALSO</h2>
43 <ul>
44 <li><a href="../../doc/README.html">README</a></li>
45 <li><a href="../cli/npm-uninstall.html">npm-uninstall(1)</a></li>
46 <li><a href="../cli/npm-prune.html">npm-prune(1)</a></li>
47 </ul>
48
49 </div>
50
51 <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
52 <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
53 <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>
54 <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>
55 <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
56 <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
57 <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>
58 <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>
59 </table>
60 <p id="footer">removing-npm &mdash; npm@2.15.11</p>
61