繁体   English   中英

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

[英]Meteor: Can't run a newly created app Win10 x64

我正在尝试学习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

我该如何运行? 我想念什么?

最新的Windows 10更新使Meteor依赖项停止工作。 流星发布了专门针对此问题的发行版。 您可以使用以下方法获取它:

meteor update --release 1.6.1.2-rc.0

见Github问题

在Meteor资料库上查看提交

如何在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应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM