]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/misc/removing-npm.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / misc / removing-npm.md
1 npm-removal(1) -- Cleaning the Slate
2 ====================================
3
4 ## SYNOPSIS
5
6 So sad to see you go.
7
8     sudo npm uninstall npm -g
9
10 Or, if that fails, get the npm source code, and do:
11
12     sudo make uninstall
13
14 ## More Severe Uninstalling
15
16 Usually, the above instructions are sufficient.  That will remove
17 npm, but leave behind anything you've installed.
18
19 If that doesn't work, or if you require more drastic measures,
20 continue reading.
21
22 Note that this is only necessary for globally-installed packages.  Local
23 installs are completely contained within a project's `node_modules`
24 folder.  Delete that folder, and everything is gone (unless a package's
25 install script is particularly ill-behaved).
26
27 This assumes that you installed node and npm in the default place.  If
28 you configured node with a different `--prefix`, or installed npm with a
29 different prefix setting, then adjust the paths accordingly, replacing
30 `/usr/local` with your install prefix.
31
32 To remove everything npm-related manually:
33
34     rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/npm*
35
36 If you installed things *with* npm, then your best bet is to uninstall
37 them with npm first, and then install them again once you have a
38 proper install.  This can help find any symlinks that are lying
39 around:
40
41     ls -laF /usr/local/{lib/node{,/.npm},bin,share/man} | grep npm
42
43 Prior to version 0.3, npm used shim files for executables and node
44 modules.  To track those down, you can do the following:
45
46     find /usr/local/{lib/node,bin} -exec grep -l npm \{\} \; ;
47
48 (This is also in the README file.)
49
50 ## SEE ALSO
51
52 * README
53 * npm-uninstall(1)
54 * npm-prune(1)