title: how to reset the npm configuration?
body: <p>I missed up my npm after running <code>npm config set python /path/to/executable/python2.7</code> command. now when I try to install a package to my repository I get the following error</p>
  
  <pre><code>gyp ERR! stack Error: Can't find Python executable "node6.10.2", you can set the PYTHON env variable
  </code></pre>
  
  <p>How can I reset my npm? I tried removing it using the following command</p>
  
  <pre><code>sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules
  </code></pre>
  
  <p>and then downloaded node.js from their <a href="http://nodejs.org" rel="nofollow noreferrer">official website</a> but it didn't resolve the error</p>