- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Exited with code: 8"错误-6ren"> Exited with code: 8"错误-刚刚开始使用 Meteor,按照 Discover Meteor 中提供的教程进行操作。 实现第 3 章中的代码后,我不断收到以下错误: W20150714-18:47:36.539(-7)? (ST-6ren">
刚刚开始使用 Meteor,按照 Discover Meteor 中提供的教程进行操作。
实现第 3 章中的代码后,我不断收到以下错误:
W20150714-18:47:36.539(-7)? (STDERR)
W20150714-18:47:36.540(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:47:36.540(-7)? (STDERR) throw(ex);
W20150714-18:47:36.540(-7)? (STDERR) ^
W20150714-18:47:36.541(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:47:36.541(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:47:36.541(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:47:36.541(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:47:36.541(-7)? (STDERR) at Array.forEach (native)
W20150714-18:47:36.541(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:47:36.541(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
W20150714-18:47:38.256(-7)? (STDERR)
W20150714-18:47:38.256(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:47:38.257(-7)? (STDERR) throw(ex);
W20150714-18:47:38.257(-7)? (STDERR) ^
W20150714-18:47:38.259(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:47:38.259(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:47:38.259(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:47:38.259(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:47:38.259(-7)? (STDERR) at Array.forEach (native)
W20150714-18:47:38.259(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:47:38.259(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
W20150714-18:47:39.821(-7)? (STDERR)
W20150714-18:47:39.822(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:47:39.822(-7)? (STDERR) throw(ex);
W20150714-18:47:39.822(-7)? (STDERR) ^
W20150714-18:47:39.824(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:47:39.825(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:47:39.825(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:47:39.825(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:47:39.825(-7)? (STDERR) at Array.forEach (native)
W20150714-18:47:39.825(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:47:39.825(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
=> Modified -- restarting.
W20150714-18:53:37.467(-7)? (STDERR)
W20150714-18:53:37.468(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:53:37.468(-7)? (STDERR) throw(ex);
W20150714-18:53:37.468(-7)? (STDERR) ^
W20150714-18:53:37.470(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:53:37.471(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:53:37.471(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:53:37.471(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:53:37.471(-7)? (STDERR) at Array.forEach (native)
W20150714-18:53:37.471(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:53:37.471(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
=> Modified -- restarting.
=> Errors prevented startup:
While building the application:
client/views/posts/post_item.js:9:2: Unexpected token )
=> Your application has errors. Waiting for file change.
=> Modified -- restarting.
W20150714-18:56:52.185(-7)? (STDERR)
W20150714-18:56:52.185(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:56:52.186(-7)? (STDERR) throw(ex);
W20150714-18:56:52.186(-7)? (STDERR) ^
W20150714-18:56:52.188(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:56:52.188(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:56:52.188(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:56:52.188(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:56:52.188(-7)? (STDERR) at Array.forEach (native)
W20150714-18:56:52.189(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:56:52.189(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
W20150714-18:56:53.775(-7)? (STDERR)
W20150714-18:56:53.775(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:56:53.775(-7)? (STDERR) throw(ex);
W20150714-18:56:53.775(-7)? (STDERR) ^
W20150714-18:56:53.778(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:56:53.778(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:56:53.778(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:56:53.778(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:56:53.778(-7)? (STDERR) at Array.forEach (native)
W20150714-18:56:53.778(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:56:53.778(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
W20150714-18:56:55.400(-7)? (STDERR)
W20150714-18:56:55.400(-7)? (STDERR) /Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150714-18:56:55.400(-7)? (STDERR) throw(ex);
W20150714-18:56:55.400(-7)? (STDERR) ^
W20150714-18:56:55.402(-7)? (STDERR) TypeError: undefined is not a function
W20150714-18:56:55.402(-7)? (STDERR) at app/collections/posts.js:1:44
W20150714-18:56:55.402(-7)? (STDERR) at app/collections/posts.js:3:3
W20150714-18:56:55.402(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:222:10
W20150714-18:56:55.403(-7)? (STDERR) at Array.forEach (native)
W20150714-18:56:55.403(-7)? (STDERR) at Function._.each._.forEach (/Users/TXC/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150714-18:56:55.403(-7)? (STDERR) at /Users/TXC/code/microscope/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
我不太明白这个错误,最重要的是,我不知道在哪里寻找解决问题的方法。
这是我的 JavaScript 文件: - posts_list.js
var postsData = [{
title: 'Introducing Telescope',
author: 'Sacha Greif',
url: 'http://sachagreif.com/introducing-telescope/'
}, {
title: 'Meteor',
author: 'Tom Coleman',
url: 'http://meteor.com/'
}, {
title: 'The Meteor Book',
author: 'Tom Coleman',
url: 'http://themeteorbook.com/'
}];
if (Meteor.isClient) {
Template.postsList.helpers({
posts: postsData
});
}
post_item.js
if (Meteor.isClient) {
Template.postItem.helpers({
domain: function(){
var a = document.createElement('a');
a.href = this.url;
return a.hostname;
}
});
}
posts.js
Posts = new Meteor.collection('posts');
这是 html 模板:
posts_list.html
<template name="postsLists">
<div class="posts">
{{#each posts}}
{{> postItem}}
{{/each}}
</div>
</template>
post_item.html
<template name="postItem">
<div class="post">
<div class="post-content">
<h3><a href="{{url}}">{{title}}</a><span>{{domain}}</span></h3>
</div>
</div>
</template>
我是否遗漏了一些明显的东西?这是版本兼容性问题吗?还是某个地方有错误?
最佳答案
我认为您在 posts.js
中拼写错误:Mongo.Collection
,它是大写的 C
。
关于javascript - meteor : "=> Exited with code: 8"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31420304/
code
正常吗?
我刚刚开始使用 YARD 来记录我的 Rails 应用程序。我没有指定任何特定的标记处理程序,但我希望 `code` 会转换为 code,但这似乎没有发生。这是正常行为吗?我是否必须添加一些额外的选项
什么是Code-Server 首先程序员朋友们肯定都用过来自微软的VS Code 这款轻量而又高级的编辑器,拥有丰富的插件库,支持各种语言编译运行。而本文介绍的Code-Server就是coder 公
我是一名高中生,今年开始学习汇编。 我目前正在制作 Pacman 克隆作为我的最终项目。 我遇到的唯一问题是我的代码很大,*.exe 文件几乎有 64KB。 所以我的问题是,如果我转向模型介质,我需要
锁定。这个问题及其答案是locked因为这个问题是题外话,但具有历史意义。它目前不接受新的答案或互动。 挑战 按字符计数绘制 Code 39 条码的 ASCII 表示的最短代码。 维基百科关于代码 3
我正在开发 VS 代码的扩展(使用 javascript)。现在我需要安装 VS Code 的路径。 windows有一种方法: var child = require('child_process'
[Windows 10] 我在自定义目录中安装了“Microsoft VS Code(用户设置)”,每当我尝试更新它时,都会显示: 然后这个 Log Info Dec 23 11:42:40.673
我正在尝试更新我的 VS 代码,但收到一条错误消息:由于防病毒软件和/或进程失控,更新可能会失败。 附加了一个来 self 的用户的日志文件,但我不确定要检查什么。我对计算机和编程还是个新手。 最佳答
几天前我安装了 Kali Linux。我正在尝试使用 Code-OSS 而不是 VSCode,因为最新版本的 Kali 没有安装普通版本所需的库。 如果我尝试使用 code-oss . 或 code
我正在从 Atom 迁移到 VS Code,因为这似乎是当今所有酷 child 都在使用的东西。 在 atom 中,我能够如图所示突出显示当前行号(装订线中的蓝色突出显示)。 有没有办法在 VS Co
我试图找到一个明确的 G 代码语法规范,而不是单个 G 代码的含义,我无处不在的规范,我的意思是详细的语法规范,目的是编写解析器。 我编写解析器没有问题,我只是在寻找语法规范,例如。我知道您不必总是为
我想在 VS Code (Windows) 中使用 Fira Code,并且已经按照 instructions 中的说明配置了字体。 。不知何故,字体看起来很模糊。我该如何解决这个问题? "edito
这个问题已经有答案了: How can I navigate back to the last cursor position in Visual Studio Code? (16 个回答) 已关闭
如何选择当前单词,即插入符号所在的位置。 注意:我正在寻找 Visual Studio Code(VS Code)(文本编辑器)的快捷方式,而不是 Visual Studio IDE。 最佳答案 在
我需要在 VS Code 中安装 flutter 但在安装扩展中,我有这个错误 Unable to install 'Dart-Code.flutter'; there is no available
memberData
有什么区别
{@code memberData} 和有什么区别?和 memberData在 JavaDoc 中 最佳答案 有两个主要区别: {@code ...}更简洁:更易于阅读(和输入)。 {@code ..
我有这样一个字符串: Here is my code sample, its not too great: [CODE] [/CODE] I hope you enjoy. 现在我想用 highli
在 VS Code 中,我有一个少于 50 个文件的 Vue 项目,但是在运行开发服务器时 VS Code 抛出 Error: ENOSPC: System limit for number of f
Source Code Pro 如何在 VSC 中使用 ExtraLight ~? 似乎以下不起作用...... 我确定我有字体。 Source Code Pro ExtraLight 最佳答案 编辑
我对 Visual Studio Code 很陌生。我正在尝试调试一个已经存在的应用程序,我已经通过 Git 克隆了它。我的文件都没有被修改。我已经下载了微软扩展“C# for Visual Stud
Visual Code VS Visual Studio Code Insider 我还是不明白这两者有什么区别,难道其中一个是新功能的试用版吗? 最佳答案 Visual Studio Code In
我是一名优秀的程序员,十分优秀!