当我在 cmd 上运行流星应用程序时崩溃 [英] meteor app crashing when I run it on cmd

查看:48
本文介绍了当我在 cmd 上运行流星应用程序时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是流星的新手,请帮忙.我创建了我的第一个应用程序,但是当我尝试运行它以便我可以在浏览器上查看它时,我收到以下错误消息:

I am new to meteor please help. I created my first app but when I try to run it so that I can view it on the browser I get the following error message:

C:\projects\myapp>meteor
[[[[[ C:\projects\myapp ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

   While loading plugin `compileTemplatesBatch` from package `templating`:
   module.js:338:15: Cannot find module '../modules/es6.object.get-own-property-descriptor'
   at Function.Module._resolveFilename (module.js:338:15)
   at Function.Module._load (module.js:280:25)
   at Module.require (module.js:364:17)
   at require (module.js:380:17)
   at Object.<anonymous>
   (C:\Users\user1\AppData\Local\.meteor\packages\templating\1.1.7\plugin.compileTemplatesBatch.os\npm\node_modules\meteor\ecmascript-runtime\node_modules\meteor\ecmascript-runtime\node_modules\meteor-ecmascript-runtime\node_modules\core-js\es6\object.js:12:1)
   at Module._compile (module.js:456:26)
   at Object.Module._extensions..js (module.js:474:10)
   at Module.load (module.js:356:32)
   at Function.Module._load (module.js:312:12)
   at Module.require (module.js:364:17)
   at require (module.js:380:17)
   at Object.<anonymous>
   (C:\Users\user1\AppData\Local\.meteor\packages\templating\1.1.7\plugin.compileTemplatesBatch.os\npm\node_modules\meteor\ecmascript-runtime\node_modules\meteor\ecmascript-runtime\node_modules\meteor-ecmascript-runtime\server.js:1:1)
   at Module._compile (module.js:456:26)
   at Object.Module._extensions..js (module.js:474:10)
   at Module.load (module.js:356:32)
   at Function.Module._load (module.js:312:12)
   at Module.require (module.js:364:17)
   at require (module.js:380:17)
   at npmRequire (C:\tools\isobuild\bundler.js:1665:14)
   at Module.useNode (packages/modules-runtime.js:453:20)
   at fileEvaluate (packages/modules-runtime.js:157:20)
   at require (packages/modules-runtime.js:92:16)
   at meteorInstall.node_modules.meteor.ecmascript-runtime.runtime.js (packages/ecmascript-runtime.js:24:18)
   at fileEvaluate (packages/modules-runtime.js:158:9)
   at require (packages/modules-runtime.js:92:16)
   at packages/ecmascript-runtime.js:2832:15
   at packages/ecmascript-runtime.js:2845:3


=> Your application has errors. Waiting for file change.

我没有编辑您在 cmd 中创建应用程序时创建的默认应用程序.我只是按照教程说明如何运行创建的应用程序,以便您在浏览器上查看它.

I haven't edited the default application that's created when you create an application in cmd. I simply followed tutorial instructions on how to run a created app so that you view it on the browser.

推荐答案

这个问题是在 Windows 平台上最近发布的 1.3 版本中出现的.顺便说一句,社区已经找到了解决方法.按照@adanlozano 在这个问题中描述的步骤,您应该解决错误:

This issue popped up from the recent 1.3 release on Windows platform. By the way, community has already found a workaround. Following the steps described in this issue by @adanlozano you should resolve the error:

  1. 导航到 C:\Users\YOUR_USER_NAME\AppData\Local\.meteor\packages并完全删除问题包文件夹(templatingtemplating-toolsecmascriptstandard-minifier-css)
  2. 以管理员身份运行您的终端窗口,以确保您的应用所在的项目目录中没有问题.
  3. 运行 meteor 并耐心等待它尝试下载丢失的包,这可能需要一段时间.
  1. Navigate to C:\Users\YOUR_USER_NAME\AppData\Local\.meteor\packages and delete the issue package folders entirely (templating, templating-tools, ecmascript, standard-minifier-css)
  2. Run your terminal window as Administrator to ensure no issues remaining in the project directory where your App is located.
  3. Run meteor and wait patiently as it attempts to download the missing packages, this might take a while.

这篇关于当我在 cmd 上运行流星应用程序时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆