> npm rm -g <packagename>
Try even this.
>npm uninstall <packagename>
Try even this.
>npm uninstall <packagename>
Java, Eclipse Plugin Development and best software development practices
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
--prefix
flag and the --global
* flag.pje@friendbear:~/foo $ npm install bower -g --prefix ./vendor/node_modules
bower@0.7.0 /Users/pje/foo/vendor/node_modules/bower
~/foo/vendor/node_modules
exists in PATH
.npm
can be set in any of six different places. In order of priority:--prefix ./vendor/node_modules
NPM_CONFIG_PREFIX=./vendor/node_modules
$HOME/.npmrc
or userconfig
param$PREFIX/etc/npmrc
or userconfig
parampath/to/npm/itself/npmrc
./node_modules
. global ones go into the prefix
config variable (/usr/local
by default).npm config list
to see your current config and npm config edit
to change it.