【问题标题】:Meteor: Can't run a newly created app Win10 x64Meteor:无法运行新创建的应用程序 Win10 x64
【发布时间】:2018-11-06 01:50:46
【问题描述】:

我正在尝试学习 Meteor,但我什至无法完成第一个教程。

PS >meteor create test
PS >cd test
PS \test> npm install
up to date in 1.644s
PS \test> meteor

=> Started proxy.
=> Started MongoDB.

W20180527-15:47:22.220(9)? (STDERR) module.js:549
W20180527-15:47:22.261(9)? (STDERR)     throw err;
W20180527-15:47:22.262(9)? (STDERR)     ^
W20180527-15:47:22.263(9)? (STDERR)
W20180527-15:47:22.268(9)? (STDERR) Error: Cannot find module 'fibers'
W20180527-15:47:22.269(9)? (STDERR)     at Function.Module._resolveFilename (module.js:547:15)
W20180527-15:47:22.271(9)? (STDERR)     at Function.Module._load (module.js:474:25)
W20180527-15:47:22.272(9)? (STDERR)     at Module.require (module.js:596:17)
W20180527-15:47:22.274(9)? (STDERR)     at require (internal/module.js:11:18)
W20180527-15:47:22.274(9)? (STDERR)     at Object.<anonymous> (D:\workspace\meteor\test\.meteor\local\build\programs\server\boot.js:1:75)
W20180527-15:47:22.275(9)? (STDERR)     at Module._compile (module.js:652:30)
W20180527-15:47:22.276(9)? (STDERR)     at Object.Module._extensions..js (module.js:663:10)
W20180527-15:47:22.277(9)? (STDERR)     at Module.load (module.js:565:32)
W20180527-15:47:22.278(9)? (STDERR)     at tryModuleLoad (module.js:505:12)
W20180527-15:47:22.278(9)? (STDERR)     at Function.Module._load (module.js:497:3)

=> Exited with code: 1

我试过了:

  1. 手动安装缺少的模块会产生另一个缺少的模块,但缺少的模块太多了。
  2. npm install 没有做任何事情,所以我尝试使用 npm-install-missing 但它只是说没有缺少模块。
  3. 重新安装 Meteor、NodeJS 和 npm。没有区别。

Windows 10 专业版 x64
流星 1.6.1.1
节点 v8.11.2
NPM 5.6.0

如何运行它?我错过了什么?

【问题讨论】:

    标签: node.js meteor npm npm-install


    【解决方案1】:

    上一次 Windows 10 更新使 Meteor 依赖项停止工作。 Meteor 专门针对这个问题发布了一个版本。您可以通过以下方式获得它:

    meteor update --release 1.6.1.2-rc.0
    

    See the Github issue

    See the commit on the Meteor repository

    【讨论】:

      【解决方案2】:

      如何在 Linux 虚拟机中开发 Meteor 应用程序?然后您可以按照以下说明进行操作:

      1. 获取 VirtualBox,https://www.virtualbox.org/
      2. 选择 Linux 发行版(Ubuntu 是一个不错的选择,因为您会在网上找到很多帮助示例。或者 CentOS,因为 Meteor 提到过)
      3. Meteor 的 Linux 指令,https://www.meteor.com/install

      Ubuntu - https://www.ubuntu.com/

      CentOS - https://www.centos.org/

      您也可以尝试安装适用于 Windows 的 Ubuntu: https://blog.ubuntu.com/2016/03/30/ubuntu-on-windows-the-ubuntu-userspace-for-windows-developers

      我已经在 Windows 上的 Ubuntu 虚拟机中成功开发了 Meteor 应用程序。

      【讨论】:

        猜你喜欢
        • 2015-03-10
        • 1970-01-01
        • 2020-04-04
        • 2021-06-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-11-01
        • 1970-01-01
        相关资源
        最近更新 更多