安装npm包问题,求解答
发布于 1年前 作者 jmarry 604 次浏览
  1. win8
  2. node v0.10.24

安装npm包失败,是所有的包,提示dns错误,求解

  • 报错代码

      npm ERR! Error: getaddrinfo EFAULT 
      npm ERR! at errnoException (dns.js:37:11)
      npm ERR! at Object.onanswer [as oncomplete] (dns.js:124:16)
      npm ERR! If you need help, you may report this *entire* log,
      npm ERR! including the npm and node versions, at:
      npm ERR! <http://github.com/isaacs/npm/issues>
      npm ERR! System Windows_NT 6.2.9200
      npm ERR! command "E:\\Program Files\\nodejs\\\\node.exe" "E:\\Program Files\\nod
      ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
      npm ERR! cwd F:\works\ghost
      npm ERR! node -v v0.10.24
      npm ERR! npm -v 1.3.21
      npm ERR! syscall getaddrinfo
      npm ERR! code EFAULT
      npm ERR! errno EFAULT
      npm WARN optional dep failed, continuing mysql[@2](/user/2).0.0-alpha9
      npm ERR!
      npm ERR! Additional logging details can be found in:
      npm ERR! F:\works\ghost\npm-debug.log
      npm ERR! not ok code 0
    
1 回复

尝试使用cnpm …

回到顶部