【问题标题】:Task in Android Studio project is failing with getaddrinfo ENOTFOUND 8888 8888:80 errorAndroid Studio 项目中的任务因 getaddrinfo ENOTFOUND 8888 8888:80 错误而失败
【发布时间】:2019-08-13 10:39:05
【问题描述】:

我的项目失败了,因为项目中的一项任务失败了。我不认为它是代码,因为该项目正在另一台机器上成功构建。

我尝试了以下方法: 1>确保没有代理设置。它当前设置为“自动检测设置” 2> 确保环境变量没有任何特定的“HTTP_PROXY”或“HTTPS_PROXY”设置。 3> 从机器上卸载 nodejs。 4> 重启机器。

我得到的错误信息是:

任务:location:installApolloCodegen FAILED

npm ERR! Windows_NT 10.0.18362
npm ERR! argv "C:\\Users\\<user_name>\\<Project_Name>\\common\\location\\.gradle\\nodejs\\node-v6.7.0-win-x64\\node.exe" 
"C:\\Users\\<user_name>\\<project_name>\\common\\location\\.gradle\\nodejs\\node-v6.7.0-win-x64\\node_modules\\npm\\bin\\npm-cli.js" "install" "apollo-codegen@0.19.1" "--save" "--save-exact"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! code ECONNRESET

npm ERR! network tunneling socket could not be established, 
cause=getaddrinfo ENOTFOUND 8888 8888:80
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network 
settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\<user_name>\ 
<project_name>\common\location\build\apollo-codegen\npm-debug.log

感谢任何帮助/调试提示。谢谢!

【问题讨论】:

    标签: android-studio npm apollo codegen


    【解决方案1】:

    解决了!我卸载并重新安装了nodejs。重启机器后,我的项目现在构建了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-04
      • 2017-10-16
      • 2022-06-23
      • 1970-01-01
      • 2015-07-25
      • 2018-03-03
      相关资源
      最近更新 更多