在Windows7 / Windows8上安装Iron Meteor时出错

时间:2014-09-05 09:39:54

标签: javascript meteor meteorite iron-router meteor-blaze

我正在尝试在Windows上安装铁路由器,但我无法安装。 以下是我尝试的步骤

在我的项目中创建了包文件夹。 克隆铁 - 版(0.8.2版)回购。 然后跑了流星添加铁路由器 我的smart.json文件看起来像这样

{
  "name": "iron-router",
  "description": "Routing specifically designed for Meteor",
  "homepage": "https://github.com/EventedMind/iron-router",
  "author": "Chris Mather (https://github.com/cmather), Tom Coleman   (https://github.com/tmeasday)",
  "version": "0.8.2",
  "git": "https://github.com/EventedMind/iron-router.git",
  "packages": {
  "iron-layout": "0.2.0"
  }
}

但是我收到以下错误     iron-router:更新npm依赖项 - connect ... =>扫描包时出错:

While building package `iron-router`:
error: no such package: 'iron-layout'

我的流星版本是0.8.3我该怎么做才能解决这个错误?任何帮助将不胜感激

2 个答案:

答案 0 :(得分:0)

Meteor与Windows不兼容,因为Windows不支持symlinks

有一些非官方的解决方案here

最好的办法是购买VM解决方案,因为移植版本已经过时了。 你还需要一个移植版的陨石。 VM设置教程here

我的团队还制作了默认的meteor development vm setup here

答案 1 :(得分:0)

这是我向Windows Meteor Version添加软件包的方式是0.8.3:

  1. 从包的github页面下载zip。 (在这种情况下为iron-router

  2. 解压zip并将其重命名为原始包名 (在这种情况下是铁路由器)

  3. 将文件夹放在我的应用程序的“packages”文件夹中

  4. 检查依赖项(在本例中为:blaze-layout,deps-ext)

  5. 下载依赖项,必要时重命名并放入packages文件夹。

  6. 现在:meteor add iron-router