简体   繁体   English

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

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

I am trying to learn Meteor but I can't even make the first tutorial work. 我正在尝试学习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

I tried: 我试过了:

  1. Installing the missing module manually gives another missing module but there is just too many of them missing. 手动安装缺少的模块会提供另一个缺少的模块,但是其中太多了。
  2. npm install was not doing anything so I tried using npm-install-missing but it just says no missing modules. npm install没有做任何事情,所以我尝试使用npm-install-missing,但是它只是说没有丢失的模块。
  3. Reinstalling Meteor, NodeJS and npm. 重新安装Meteor,NodeJS和npm。 No difference. 没有不同。

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

How do I run this? 我该如何运行? What am I missing? 我想念什么?

The last Windows 10 update made Meteor dependencies stop working. 最新的Windows 10更新使Meteor依赖项停止工作。 Meteor published a release specifically for this problem. 流星发布了专门针对此问题的发行版。 You can get it by using: 您可以使用以下方法获取它:

meteor update --release 1.6.1.2-rc.0

See the Github issue 见Github问题

See the commit on the Meteor repository 在Meteor资料库上查看提交

How about developing your Meteor app in a Linux virtual machine? 如何在Linux虚拟机中开发Meteor应用程序? Then you could follow these instructions: 然后,您可以按照以下说明进行操作:

  1. Get VirtualBox, https://www.virtualbox.org/ 获取VirtualBox, https://www.virtualbox.org/
  2. Choose a Linux distro (Ubuntu is a good option because you'll find lots of help examples online. Or CentOS, since it's mentioned by Meteor) 选择一个Linux发行版(Ubuntu是一个不错的选择,因为您可以在线找到很多帮助示例。或者CentOS,因为它是Meteor提到的)
  3. Linux instructions for Meteor, https://www.meteor.com/install 适用于Meteor的Linux说明, https://www.meteor.com/install

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

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

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

I've developed Meteor apps successfully in an Ubuntu virtual machine on Windows. 我已经在Windows的Ubuntu虚拟机中成功开发了Meteor应用程序。

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

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