search

Home  >  Q&A  >  body text

node.js - 如何解决Meteor安装必须翻墙且缓慢的问题

使用 Meteor 官方的安装方法来安装:

curl https://install.meteor.com/ | sh

安装常常失败

后来知道要翻墙才能安装。但是 安装速度 还是 慢的可以,而且断断续续不稳定。有什么办法可以快速安装呢?

PHPzPHPz2875 days ago581

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-17 14:40:21

    Open the source code instructions for installing meteor and find that the problem lies in this line:

    TARBALL_URL="https://meteorinstall-4168.kxcdn.com/packages-bootstrap/${RELEASE}/meteor-bootstrap-${PLATFORM}.tar.gz"

    https://meteorinstall-4168.kxcdn.comThis domain name needs to be bypassed to access it.

    Coincidentally, I found a domain name that allows direct access from mainland China:

    https://d3sqy0vbqsdhku.cloudfront.net

    So the installation URL is slightly modified:

    TARBALL_URL="https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/${RELEASE}/meteor-bootstrap-${PLATFORM}.tar.gz"

    Note: The modified source code instruction file needs to be placed on the server before it can be accessed by curl. Here is my private link

    curl http://jafeney.com:9999/file/meter.sh | sh

    Just shell execute it

    reply
    0
  • Cancelreply