title: Error running npm command TypeError: mkdirp is not a function
body: <p>I already tried to uninstall the Nodejs and reinstall an other version but I keep on getting this error every time I run the command <code>npm install</code> or <code>npm</code>. when I try <code>npm -v</code> it returns the version.</p>
  
  <p>My current installed nodejs versions is 10.16.0 and NPM is 6.12.0.</p>
  
  <blockquote>
    <p>TypeError: mkdirp is not a function
        at Conf.setUser (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\config\set-user.js:22:3)
        at Conf.loadExtras (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:225:8)
        at Conf. (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:166:12)
        at Object.onceWrapper (events.js:286:20)
        at Conf.emit (events.js:198:13)
        at ConfigChain._resolve (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\node_modules\config-chain\index.js:281:34)
        at ConfigChain.add (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\node_modules\config-chain\index.js:259:10)
        at Conf.add (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:338:27)
        at Conf. (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\config\core.js:314:25)
        at ReadFileContext.callback (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:90:16)
    C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\npm.js:59
          throw new Error('npm.load() required')
          ^</p>
  </blockquote>
  
  <p>Error: npm.load() required
      at Object.get (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\npm.js:59:13)
      at process.errorHandler (C:\Users\mrosus\AppData\Roaming\npm\node_modules\npm\lib\utils\error-handler.js:205:32)
      at process.emit (events.js:198:13)
      at process._fatalException (internal/bootstrap/node.js:496:27)</p>