npm 错误:无法建立隧道套接字,原因=connect ETIMEDOUT

2023-12-01

我有一个使用 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.

然后我运行命令“GODE_DEBUG=info heroku run rake db:migrate”并收到此错误:

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 proxy
npm config rm https-proxy

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

npm 错误:无法建立隧道套接字,原因=connect ETIMEDOUT 的相关文章

随机推荐