Skip to content

Instantly share code, notes, and snippets.

@fxp
Created August 10, 2018 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxp/fe42cdbc07790bbad220e3825d2d230f to your computer and use it in GitHub Desktop.
Save fxp/fe42cdbc07790bbad220e3825d2d230f to your computer and use it in GitHub Desktop.
通过APT-GET安装nodejs被墙
# 问题
有时候会链接不到deb.nodesource.com,造成无法通过包管理安装nodejs。用Lantern的全局流量代理好像无法重定向apt-get的流量。
# 解决方案
sudo http_proxy="http://127.0.0.1:xxxx" apt-get install nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment