流星在哪里存放它的包裹? [英] Where does meteor stores its packages?
问题描述
我有一个流星 1.0 应用程序.我添加了一堆包,例如:meteor add kevohagan:ramda
.但我在任何地方都找不到它.我什至在我的系统上找不到它.
I have a meteor 1.0 app. I've added a bunch of packages, for example: meteor add kevohagan:ramda
. But I cannot find it anywhere. I can't even find it on my system.
在我的项目中:
$> meteor list
kevohagan:ramda 0.1.2 A practical functional library for Javascript programmers.
meteor-platform 1.2.0 Include a standard set of Meteor packages in your app
...
$> ls packages
ls: packages: No such file or directory
$> mdfind ramda.js # file added by the package
# no results
他们在哪里?
推荐答案
如果你通过meteor add author:pkg
添加一个包,它会被添加到meteor安装中(例如~/.meteor/packages
);在这里你可以找到不同版本的包.在您的项目主页中,包名称将添加到 .meteor/packages
文件中.
If you add a package via meteor add author:pkg
it will be added to the meteor installation (e.g. ~/.meteor/packages
); here you can find different versions of the package. In your project home, the package name will be added to the .meteor/packages
file.
稍后,如果运行您的项目,该包将被添加到build
目录中(当然这里只能找到一个版本).
Later, if run your project, the package will be added to the build
directory (and of course only one version can be found here).
这篇关于流星在哪里存放它的包裹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!