meteor 安装太慢 解决方案

1.先建个目录 :mkdir meteor-install

2.下载官方的安装脚本:curl install.meteor.com/ > meteor.install.sh

3.改造安装脚本:vim meteor.install.sh

TARBALL_URL="https://meteorinstall-4168.kxcdn.com/packages-bootstrap/${RELEASE}/meteor-bootstrap-${PLATFORM}.tar.gz"
TARBALL_URL="http://localhost:8080/server/databases/meteor-bootstrap-os.osx.x86_64.tar.gz"
把上面那行换成下面那行,然后用迅雷把上面的文件下载下来,记的替换路径的变量。下载下来的文件部署到本地express起的服务器的databases目录下。

4.设置一下脚本执行权限chmod 755 meteor.install.sh

5.打完收工,运行一下脚本./meteor.install.sh


➜  meteor-install ./meteor.install.sh
Downloading Meteor distribution
######################################################################## 100.0%

Meteor 1.4.2.3 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.

To get started fast:

  $ meteor create ~/my_cool_app
  $ cd ~/my_cool_app
  $ meteor

Or see the docs at:

  docs.meteor.com


参考:

http://blog.csdn.net/bingbingtea/article/details/50959713


http://blog.csdn.net/lly2517125/article/details/51726951

标签: 点击数:663