我按照publish-with-relations
David 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
目录并重新克隆回购。两者都导致了同样的错误。
答案 0 :(得分:0)
看起来有点像你自己试图安装它。
需要在/packages
中安装软件包。之所以出现这种错误,是因为meteor将您的包解释为Meteor应用程序的一部分,而不是包含在/localpackages
中的包。陨石(mrt
)为你完成所有这些,所以你不应该做以下任何事情:
只需运行mrt add publish-with-relations
即可将其安装在根目录中。
要更新软件包,您可以查看/packages/publish-with-relations
并更新代码(它的符号链接)