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

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

问题描述

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

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)

有没有可靠的方法来安装特定版本的meteor工具?

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,version 参数存在于choco 安装程序:

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天全站免登陆