我试图从大气中使用玉石把手(https://github.com/SimonDegraeve/meteor-jade-handlebars)包裹。我用陨石成功安装了它。问题是当我尝试运行我的流星服务器时,我在启动时收到以下错误消息/输出:
初始化mongo数据库......这可能需要一些时间。没有依赖
捆绑中的信息。文件系统监视已禁用。
=>错误阻止启动:捆绑应用程序时出现异常:
ReferenceError:未定义require at /home/ewillis1/collaboratum/packages/jade-handlebars/package.js:5:21
它引用的特定行是package.js
var fs = require('fs');
如果你能帮助我让这个包与Meteor 0.6.4一起使用,那么任何帮助或指示都会受到赞赏!
答案 0 :(得分:0)
https://stackoverflow.com/a/17007054/1408362
我找到了对自己问题的部分答案。看到jade-handlebars包最近更新于7个月前(此时),它在package.js文件中使用了基本的“require()”方法,当时更新版本的meteor(此时为0.6.4)希望您使用Npm.require()查看我正在链接的相关stackoverflow帖子。
现在我遇到的问题是这个
No dependency info in bundle. Filesystem monitoring disabled.
=> Errors prevented startup:
Exception while bundling application:
Error: ELOOP, too many symbolic links encountered '/home/ewillis1/myproject/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebar
s/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/
packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/pa
ckages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/pack
ages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packag
es/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages
/jade-handlebars/jade/lib/index.js'
第二个问题是由于我在jade-handlebars文件夹中意外使用mrt安装玉石把手时出现的错误