流星:无法运行新创建的应用程序Win10 x64

时间:2018-05-27 07:21:28

标签: node.js meteor npm npm-install

我正在尝试学习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。没有区别。
  4. Windows 10 Pro x64
    流星1.6.1.1
    节点v8.11.2
    NPM 5.6.0

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

2 个答案:

答案 0 :(得分:2)

最后一次Windows 10更新使Meteor依赖项停止运行。 Meteor专门针对此问题发布了一个版本。您可以使用以下方式获取它:

meteor update --release 1.6.1.2-rc.0

See the Github issue

See the commit on the Meteor repository

答案 1 :(得分:0)

如何在Linux虚拟机中开发Meteor应用程序?然后你可以按照这些说明操作:

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

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

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

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

相关问题