【问题标题】:Meteor: having trouble getting the publish-with-relations package to cooperateMeteor:无法让 publish-with-relations 包合作
【发布时间】:2014-03-20 05:52:59
【问题描述】:

我按照publish-with-relationsDavid Weldon's post on getting a local copy 中的说明进行操作,因为this question 告诉我Atmosphere 版本存在致命错误。

我将克隆的 repo 放在我的项目目录$apphome/localpackages 中,mrt add publish-with-relations 的调用运行良好,没有错误。

但是,当我启动整个过程时,它给了我这个错误:

=> Meteor server running on: http://localhost:3000/
W20140219-10:30:46.040(-7)? (STDERR) /home/blaine/.meteor/tools/09b63f1ed5/lib/node_modules/fibers/future.js:173
W20140219-10:30:46.168(-7)? (STDERR)                        throw(ex);
W20140219-10:30:46.169(-7)? (STDERR)                              ^
W20140219-10:30:46.170(-7)? (STDERR) TypeError: Object #<Object> has no method 'describe'
W20140219-10:30:46.174(-7)? (STDERR)     at app/localpackages/publish-with-relations/package.js:1:44
W20140219-10:30:46.174(-7)? (STDERR)     at app/localpackages/publish-with-relations/package.js:16:3
W20140219-10:30:46.175(-7)? (STDERR)     at /home/blaine/Business/PianoStudio/websitemeteor/.meteor/local/build/programs/server/boot.js:155:10
W20140219-10:30:46.175(-7)? (STDERR)     at Array.forEach (native)
W20140219-10:30:46.175(-7)? (STDERR)     at Function._.each._.forEach (/home/blaine/.meteor/tools/09b63f1ed5/lib/node_modules/underscore/underscore.js:79:11)
W20140219-10:30:46.176(-7)? (STDERR)     at /home/blaine/Business/PianoStudio/websitemeteor/.meteor/local/build/programs/server/boot.js:82:5

除非你停止服务器,否则它会一遍又一遍地吐出来。

发生了什么事?我做错什么了吗? github repo有什么问题吗?

可能相关我尝试了两次这个过程,一次使用meteor add,一次使用mrt add。在两者之间,使用meteor remove 删除包并清除localpackages 目录并重新克隆repo。两者都导致相同的错误。

【问题讨论】:

    标签: git meteor meteorite


    【解决方案1】:

    看起来有点像你自己尝试安装的。

    软件包需要安装在/packages。出现该错误是因为meteor 将您的包解释为Meteor 应用程序的一部分而不是包,位于/localpackages 中。 Meteorite (mrt) 会为您完成所有这些工作,因此您不应执行以下任何操作:

    您只需运行mrt add publish-with-relations 即可将其安装在根目录中。

    要使软件包保持最新状态,您可以查看 /packages/publish-with-relations 并更新那里的代码(它是一个符号链接)

    【讨论】:

    • 那么你的建议是:我打电话给mrt add,然后我进入.meteorite/packages/publish-with-relations,清理内容,然后重新创建一个新目录?将 repo 放在我的应用程序目录之外的某个位置,然后按照 David Weldon 博客中的其余说明进行操作会更直接吗? dweldon.silvrback.com/local-packages
    • 我遵循了他的指示,但我只是将 repo 放在了我的应用程序目录之外。你是对的,它被误解为我的应用程序的一部分!真是愚蠢的错误。
    猜你喜欢
    • 1970-01-01
    • 2015-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 2015-03-05
    • 2015-08-05
    相关资源
    最近更新 更多