1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
4 .TH "NPM\-REMOVAL" "1" "June 2014" "" ""
7 \fBnpm-removal\fR \-\- Cleaning the Slate
10 So sad to see you go\.
15 sudo npm uninstall npm \-g
22 Or, if that fails, get the npm source code, and do:
33 .SH "More Severe Uninstalling"
34 Usually, the above instructions are sufficient\. That will remove
35 npm, but leave behind anything you\'ve installed\.
38 If that doesn\'t work, or if you require more drastic measures,
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)\.
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\.
53 To remove everything npm\-related manually:
58 rm \-rf /usr/local/{lib/node{,/\.npm,_modules},bin,share/man}/npm*
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
73 ls \-laF /usr/local/{lib/node{,/\.npm},bin,share/man} | grep npm
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:
86 find /usr/local/{lib/node,bin} \-exec grep \-l npm \\{\\} \\; ;
93 (This is also in the README file\.)