throw e; // process.nextTick error, or ‘error’ event on first tick 21.04.12

  • Mac OS X
  • Comments Off on throw e; // process.nextTick error, or ‘error’ event on first tick
  • 0

  • node.js:201
    throw e; // process.nextTick error, or 'error' event on first tick

    Error: No such module
    at Object. (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.
    (/usr/lib/node_modules/npm/lib/utils/ini.js:43:18)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)

    Solution :

    Remove the thing in /usr, so that your computer will see the one in /usr/local.

    sudo rm -rf /usr/{bin,lib/node_modules,share/man/*}/npm*
    hash -r

    Related Articles

    Comments are closed.