我是流星新手请帮帮忙。我创建了我的第一个应用程序但是当我尝试运行它以便我可以在浏览器上查看它时,我收到以下错误消息:
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中创建应用程序时创建的默认应用程序。我只是按照有关如何运行已创建的应用程序的教程说明,以便您在浏览器上查看它。
答案 0 :(得分:14)
此问题从Windows平台上最近的1.3版本中突然出现。顺便说一句,社区已经找到了解决方法。按照@adanlozano在this issue中描述的步骤,您应该解决错误:
C:\Users\YOUR_USER_NAME\AppData\Local\.meteor\packages
并完全删除问题包文件夹(templating
,templating-tools
,ecmascript
,standard-minifier-css
)meteor
并耐心等待尝试下载丢失的软件包,这可能需要一段时间。答案 1 :(得分:1)
对于未来的访问者,此问题已在Meteor 1.3.1中修复。请参阅ramijarrar对相关Github issue的评论。