npm: Upgrade to 1.3.17
[platform/upstream/nodejs.git] / deps / npm / man / man7 / removing-npm.7
1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
3 .
4 .TH "NPM\-REMOVAL" "1" "December 2013" "" ""
5 .
6 .SH "NAME"
7 \fBnpm-removal\fR \-\- Cleaning the Slate
8 .
9 .SH "SYNOPSIS"
10 So sad to see you go\.
11 .
12 .IP "" 4
13 .
14 .nf
15 sudo npm uninstall npm \-g
16 .
17 .fi
18 .
19 .IP "" 0
20 .
21 .P
22 Or, if that fails, get the npm source code, and do:
23 .
24 .IP "" 4
25 .
26 .nf
27 sudo make uninstall
28 .
29 .fi
30 .
31 .IP "" 0
32 .
33 .SH "More Severe Uninstalling"
34 Usually, the above instructions are sufficient\.  That will remove
35 npm, but leave behind anything you\'ve installed\.
36 .
37 .P
38 If that doesn\'t work, or if you require more drastic measures,
39 continue reading\.
40 .
41 .P
42 Note that this is only necessary for globally\-installed packages\.  Local
43 installs are completely contained within a project\'s \fBnode_modules\fR
44 folder\.  Delete that folder, and everything is gone (unless a package\'s
45 install script is particularly ill\-behaved)\.
46 .
47 .P
48 This assumes that you installed node and npm in the default place\.  If
49 you configured node with a different \fB\-\-prefix\fR, or installed npm with a
50 different prefix setting, then adjust the paths accordingly, replacing \fB/usr/local\fR with your install prefix\.
51 .
52 .P
53 To remove everything npm\-related manually:
54 .
55 .IP "" 4
56 .
57 .nf
58 rm \-rf /usr/local/{lib/node{,/\.npm,_modules},bin,share/man}/npm*
59 .
60 .fi
61 .
62 .IP "" 0
63 .
64 .P
65 If you installed things \fIwith\fR npm, then your best bet is to uninstall
66 them with npm first, and then install them again once you have a
67 proper install\.  This can help find any symlinks that are lying
68 around:
69 .
70 .IP "" 4
71 .
72 .nf
73 ls \-laF /usr/local/{lib/node{,/\.npm},bin,share/man} | grep npm
74 .
75 .fi
76 .
77 .IP "" 0
78 .
79 .P
80 Prior to version 0\.3, npm used shim files for executables and node
81 modules\.  To track those down, you can do the following:
82 .
83 .IP "" 4
84 .
85 .nf
86 find /usr/local/{lib/node,bin} \-exec grep \-l npm \\{\\} \\; ;
87 .
88 .fi
89 .
90 .IP "" 0
91 .
92 .P
93 (This is also in the README file\.)
94 .
95 .SH "SEE ALSO"
96 .
97 .IP "\(bu" 4
98 README
99 .
100 .IP "\(bu" 4
101 npm help rm
102 .
103 .IP "\(bu" 4
104 npm help prune
105 .
106 .IP "" 0
107