title: How to uninstall global package with npm?
body: <p>I have installed webpack in this way:</p>
  
  <pre><code>npm install -g webpack
  </code></pre>
  
  <p>Now want to uninstall it:</p>
  
  <pre><code>npm uninstall -g webpack
  </code></pre>
  
  <p>Check it again, it didn't been uninstalled:</p>
  
  <pre><code>webpack -v
  3.1.0
  </code></pre>
  
  <p>Why?</p>
  
  <hr>
  
  <p>And, I use this way can't find <code>webpack</code>:</p>
  
  <pre><code>npm list -g | grep webpack
  </code></pre>
  
  <hr>
  
  <p>This also didn't work:</p>
  
  <pre><code>npm uninstall -g webpack --save
  </code></pre>
  
  <hr>
  
  <p>After run this under a directory which included <code>package.json</code>:</p>
  
  <pre><code>npm uninstall webpack
  npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
  npm WARN uglifyjs-webpack-plugin@0.3.1 requires a peer of uglify-js@^2.8.0 but none was installed.
  npm WARN uglifyjs-webpack-plugin@0.3.1 requires a peer of webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
  </code></pre>