【发布时间】: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