【发布时间】:2012-04-23 22:18:12
【问题描述】:
Meteor 是否支持在 Windows 上开发?我没有在文档中看到任何下载或提及 Windows。
“快速入门”假设您使用的是 *Nix OS。
【问题讨论】:
-
2014 年 11 月:有一个 official Windows support preview。
Meteor 是否支持在 Windows 上开发?我没有在文档中看到任何下载或提及 Windows。
“快速入门”假设您使用的是 *Nix OS。
【问题讨论】:
Meteor 1.1+:在https://win.meteor.com/ 上推出官方 Windows 支持
Meteor 1.0+:有一个official Windows preview。
Meteor 0.8 及更早版本:请参阅 http://win.meteor.com/
证明,Meteor 在 Windows 上运行。
【讨论】:
编辑:见Tom's answer。
下面的旧答案。
不,Windows 尚不支持此功能。如果您尝试安装,您将收到以下错误:
Sorry, this OS is not supported yet.
作为一种解决方法,您可以在 VM 中运行 linux 机器并将其用作服务器来运行流星,但仍然可以在 Windows 中进行所有开发。我已经使用 VirtualBox 来运行没有 GUI 的 Ubuntu。步骤如下:
【讨论】:
我刚刚尝试在 Windows 7 上使用 curl 安装它,结果:
Sorry, this OS is not supported yet.
【讨论】:
重大更新,因为此问题的现有答案非常过时。
可以在https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows找到官方Windows支持
可以在http://win.meteor.com/上找到对 Meteor 的非官方 Windows 支持
win.meteor.com 上列出了 3 个解决方案,一个本地 MSI 安装程序,以及 2 个基于 Vagrant 的虚拟化解决方案:
1) MSI 安装程序:
Stephen Darnell 接续了 Tom Wijsman 优雅地离开的地方。 这个解决方案是让 Meteor 运行的最直接的方法 在提供 MSI 安装程序的 Windows 上。有一些取舍 因为这是一个分叉,并且可能落后于最新版本 Stephen 可以更新并测试最新版本。
2) Vagrant Shell 配置
Gabriel Pugliese 发布了一份关于如何配置 Meteor 的指南 带有 Vagrant 的 Shell Provisioning 的 Linux。这些可能更容易获得 给熟悉 Linux 和 Shell 脚本的用户。这个解决方案是 通过直接的 shell 命令比 厨师替代品。
3) Vagrant Chef 供应
Matthew Sullivan 正在维护一组 Vagrant 文件,厨师食谱, 和使用 Vagrant 在 Linux 上配置 Meteor 的指南。这位厨师 解决方案比 shell 稍微自动化和可配置 解决方案,但可能不像提供的那样简单 配置参数作为 Shell 解决方案。
GitHub 存储库和详细信息可以在 win.meteor.com 上找到。三位作者对Meteor-talk Google Group 的响应非常好。
一点历史:
对 Meteor 的非官方 Windows 支持由 Tom Wijsman 发起,并由 Tom 支持到 0.5.9。 0.6.0 及更高版本由 Stephen Darnell、Gabriel Pugliese 和 Matt Sullivan 编写。
【讨论】:
我没有看到这里提到的Nitrous.io。
我正在使用 Nitrous.io 和 Nitrous Desktop,它允许您使用您最喜欢的文本编辑器(在我的例子中是 Sublime Text)。
有一个快速教程here 和Discover Meteor 在第 2 章中也涉及到这一点。
【讨论】:
听起来 Windows 还不支持。如果你想玩它,我建议抓住VirtualBox 并在上面安装你最喜欢的 Linux。
【讨论】:
c:\Meteor
c:\Meteor 目录添加到您的PATH 环境变量中。C:\Meteor\bin\node_modules\npm\bin 目录添加到您的PATH 环境变量中。从我的 DOS 屏幕登录如下:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\mike>cd\
C:\>cd meteor
C:\Meteor>cd C:\Meteor\bin\node_modules\npm\bin
C:\Meteor\bin\node_modules\npm\bin>meteor create try-meteor
try-meteor: created.
To run your new app:
cd try-meteor
meteor
C:\Meteor\bin\node_modules\npm\bin>curl
‘curl’ is not recognized as an internal or external command,
operable program or batch file.
C:\Meteor\bin\node_modules\npm\bin>cd try-meteor
C:\Meteor\bin\node_modules\npm\bin\try-meteor>meteor
[[[[[ C:\Meteor\bin\node_modules\npm\bin\try-meteor ]]]]]
Initializing mongo database… this may take a moment.
Running on: http://localhost:3000/
在浏览器中打开http://localhost:3000/ ...瞧!!
世界你好!
欢迎尝试流星。
【讨论】:
如果你得到如下错误:
{
[[[[[ D:\sms\Apps\Meteor\bin\node_modules\npm\bin\try-meteor ]]]]]
Unexpected mongo exit code 127. Restarting.
Unexpected mongo exit code 127. Restarting.
////////////////////////////////////////
////////////////////////////////////////
meteor is out of date. Please run:
meteor update
////////////////////////////////////////
////////////////////////////////////////
Unexpected mongo exit code 127. Restarting.
Can't start mongod. Check for other processes listening on port 3002 or other me
teors running in the same project.
}
使用来自 mongodb 站点的最新 mogodb 文件更新 MondoDB 文件夹。
【讨论】:
我发现,同样是 Meteor 新手的新程序员可能已经正确安装了它,但在弄清楚如何打开和运行它时遇到了麻烦。所以我将在这篇文章中解决这个问题。
1) 我假设你去了这里:http://win.meteor.com/ 并下载了 MSI 安装程序
2) 我假设您随后在流星中创建了一个 newapp 然后运行流星
3) 如果步骤 1 和 2 已完成,您应该会在命令行中看到:
正在初始化 mongo 数据库...这可能需要一点时间。
=> Meteor 服务器运行在:http://localhost:3000/
4) 打开 Chrome 并输入本地主机地址:http://localhost:3000/
5) 打开你的 newapp 文件夹 - 应该位于你的 Meteor 文件夹中,无论它安装在你的硬盘上
6) 在您喜欢的编辑器(如 Sublime Text 2)中打开您的 newapp.html、newapp.css 和 newapp.js 文件)
7) 开始根据需要编辑这些文件并观察您的页面自动更新,正如 Meteor 设计的那样。
瞧!!您正在使用 Meteor 进行构建。尽情享受吧!
【讨论】:
www.meteor.com/try/3 那时整个应用程序都会严重崩溃。我正在考虑使用 USB 闪存驱动器上的 Ubuntu 完整操作系统进行修复?
【讨论】:
最近查看他们的网站并查看他们的常见问题解答,您会发现 Meteor 开发路线图。他们将其托管在 Trello 上,在 1.0 发布后,您会看到“官方 Windows 支持”。所以,它在地图上 - 现在我们等待!
https://trello.com/board/meteor-roadmap/508721606e02bb9d570016ae
【讨论】:
在 VM 中使用 linux 您可能想要陨石,如果您像我一样对 Linux 不满意,这并不容易...这是方法(谢谢 johntday Unable to install meteorite on Ubuntu VM):
这是我的安装步骤
更新和升级您的 Ubuntu 根据您的映像的最新程度,这可能需要一段时间。 sudo apt-get update && sudo apt-get 升级
安装 curl sudo apt-get install curl
安装节点http://lucidservices.com/2013/09/17/install-node-on-ubuntu/
安装流星 curl https://install.meteor.com |嘘
安装陨石 sudo -H npm install -g 陨石
如果您在设置高屏幕分辨率时遇到问题,这里有一个解决方法:
【讨论】: