如何安装流星JS的早期版本? [英] how do I install a previous version of meteor JS?

查看:71
本文介绍了如何安装流星JS的早期版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试托管一个使用旧版流星的流星应用. 每次我尝试启动该应用程序时,都会在安装该工具的过程中有所了解,然后我看到一条消息,例如:

I'm trying to host a meteor app that uses an old version of meteor. Every time i try to start the app it will get somewhat through the process of installing the tool, and then i see a message such as:

Killednloading meteor-tool@1.1.3...          -                                     

(请注意如何杀死它以某种方式覆盖了命令行的下载部分)

(note how killed somehow overwrites the downloading part of the command line)

是否有可靠的方法来安装特定版本的流星工具?

Is there a reliable way to install the meteor tool at a specific version?

推荐答案

Meteor团队在其下载端点中添加了release参数.现在,您只需指定所需的版本:

The Meteor team added a release parameter to their download endpoint. Now you can simply specify the desired version:

curl "https://install.meteor.com/?release=1.3.3.1" | sh

对于Windows,对于choco安装程序,存在 version参数:

For Windows, a version parameter exists for the choco installer:

choco install meteor --version 1.3.3.1


原始解决方案

您可以使用sed.将其插入curlsh的中间:

You can use sed for that. Insert it in the middle of curl and sh:

curl https://install.meteor.com/ | sed 's/1.4/1.3.3.1/' | sh

这会将1.4版(当前版本)替换为1.3.3.1版

That will replace the release 1.4 (current version) to 1.3.3.1

这篇关于如何安装流星JS的早期版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆