Hola, quisiera saber si existe algún comando que permita remover completamente npm, incluyendo los archivos de configuración y módulos instalados. Esto debido a que obtengo el siguiente error al ejecutar

$ sudo npm i -g package

Error: read ENOTCONN
    at _errnoException (util.js:1003:13)
    at Socket._read (net.js:495:20)
    at Socket.Readable.read (_stream_readable.js:449:10)
    at Socket.read (net.js:376:43)
    at new Socket (net.js:259:12)
    at createSocket (internal/child_process.js:241:11)
    at ChildProcess.spawn (internal/child_process.js:357:23)
    at exports.spawn (child_process.js:499:9)
    at Object.exports.execFile (child_process.js:209:15)
    at uidNumber (/usr/lib/node_modules/npm/node_modules/uid-number/uid-number.js:33:17)
    at Conf.loadUid (/usr/lib/node_modules/npm/lib/config/load-uid.js:11:5)
    at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:235:10)
    at Conf.setUser (/usr/lib/node_modules/npm/lib/config/set-user.js:15:34)
    at Conf.loadExtras (/usr/lib/node_modules/npm/lib/config/core.js:233:8)
    at Conf.<anonymous> (/usr/lib/node_modules/npm/lib/config/core.js:173:12)
    at Object.onceWrapper (events.js:255:19)
/usr/lib/node_modules/npm/lib/npm.js:61
      throw new Error('npm.load() required')
      ^

Error: npm.load() required
    at Object.get (/usr/lib/node_modules/npm/lib/npm.js:61:13)
    at process.errorHandler (/usr/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
    at process.emit (events.js:160:13)
    at process._fatalException (bootstrap_node.js:386:26)