npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm uninstall is not removing node_modules/ folder from global dir while uninstalling certain packages

What I Wanted to Do

Completely uninstall global packages without leaving traces behind.

Tested using:

What Happened Instead

node_modules/<package> directory was not removed completely.

Reproduction Steps

$ npm i cordova -g
$ npm rm cordova -g

$ npm i npm-check-updates -g
$ npm rm npm-check-updates -g


Platform Info

$ npm --versions
$ node -p process.platform