【问题标题】:Error while installing Iron Meteor on Windows7/Windows8在 Windows7/Windows8 上安装 Iron Meteor 时出错
【发布时间】:2014-10-30 05:33:59
【问题描述】:

我正在尝试在 Windows 上安装 Iron-router,但无法安装。 以下是我尝试过的步骤

在我的项目中创建了包文件夹。 克隆铁路由器(版本 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 依赖项 -- 连接...=> 扫描包时出错:

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

我的 Meteor 版本是 0.8.3 我该如何解决这个错误?任何帮助将不胜感激

【问题讨论】:

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


    【解决方案1】:

    Meteor 还不兼容 windows,因为 windows 不支持symlinks

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

    您最好选择 VM 解决方案,因为移植版本已经严重过时。 你还需要一个移植版的陨石。虚拟机设置教程here

    我的团队还做了一个默认的meteor开发vm setuphere

    【讨论】:

    【解决方案2】:

    这就是我将包添加到 Windows Meteor 版本是 0.8.3 的方式:

    1. 从包的 github 页面下载 zip。 (在本例中为iron-router

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

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

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

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

    6. 现在:meteor 添加铁路由器

    【讨论】:

      猜你喜欢
      • 2013-04-05
      • 1970-01-01
      • 1970-01-01
      • 2016-10-12
      • 2015-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-30
      相关资源
      最近更新 更多