• Problem with npm

    Hi, i want to know a command(s) for remove all npm config and files. Or a solution to solver the following error:

    When i run:

    $sudo npm i -g package

    Return this error:

    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)
          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)
  • Sorry, but I cleaned the proxy config and have the same error.

npm2 Posts 3Views 448
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.