当我在 cmd 上运行流星应用程序时崩溃

编程入门 行业动态 更新时间:2024-10-10 15:27:43
本文介绍了当我在 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\pluginpileTemplatesBatch.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\pluginpileTemplatesBatch.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:

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

    当我在 cmd 上运行流星应用程序时崩溃

    本文发布于:2023-11-27 15:30:32,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1638571.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:我在   应用程序   流星   cmd

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!