gpt4 book ai didi

ruby-on-rails - npm 错误 : tunneling socket could not be established, 原因=连接 ETIMEDOUT

转载 作者:行者123 更新时间:2023-12-01 23:19:29 30 4
gpt4 key购买 nike

我有一个应用程序,它使用 Rails 框架并将 AngularJs 实现为前端的一部分。

我已将所有内容推送到 Heroku 并安装了 Heroku Toolbelt,但是当我尝试使用“heroku run rake db:migrate”迁移数据库时,我收到以下错误:

Installing core plugins heroku-cli-addons, heroku-apps, heroku-fork, heroku-git, heroku-local, heroku-run, heroku-status...
Error installing package. Try running again with GODE_DEBUG=info to see more output.
! `run` is not a heroku command.
! Perhaps you meant `-h`, `2fa`, `auth`, `join`, `open`, `orgs`, `pg`, `ps` or `rake`.
! See `heroku help` for a list of available commands.

I then run the command "GODE_DEBUG=info heroku run rake db:migrate" and receive this error:

npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/Christopher_Pelnar/.heroku/node-v4.2.1-darwin-x64/bin/node" "/Users/Christopher_Pelnar/.heroku/node-v4.2.1-darwin-x64/lib/node_modules/npm/cli.js" "install" "heroku-cli-addons" "heroku-apps" "heroku-fork" "heroku-git" "heroku-local" "heroku-run" "heroku-status" "--loglevel=info"
npm ERR! node v4.2.1
npm ERR! npm v3.3.8
npm ERR! code ECONNRESET

npm ERR! network tunneling socket could not be established, cause=connect ETIMEDOUT 198.105.254.228:8080
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! /Users/Christopher_Pelnar/.heroku/npm-debug.log

最佳答案

删除代理设置解决了问题:

npm config rm 代理
npm config rm https-proxy

关于ruby-on-rails - npm 错误 : tunneling socket could not be established, 原因=连接 ETIMEDOUT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33322739/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com