在Meteor上安装本地软件包 [英] Installing a local package on Meteor
问题描述
我正在尝试在Meteor上运行本地程序包.
I'm trying to run a local package on Meteor.
我有一个正确的package.js,有一个smart.json,它在我的Meteor项目中的/packages目录中.我项目中的smart.json看起来像这样:
I've got a correct package.js, have a smart.json, and it's inside my /packages directory in my Meteor project. The smart.json at my project looks like this:
{
"packages": {
"router": {},
"userErrors": {
"path": "/home/user/Documents/project/packages/userErrors"
}
}
}
我正在正确使用api.add_files.当我从packages文件夹中取出代码时,代码运行良好.为了使该程序包运行,我缺少什么了吗?我正在使用mrt
命令运行Meteor.
And I am using api.add_files and all correctly. The code runs fine when I take it out of the packages folder. Is there something I'm missing in order to make this package run? I'm running Meteor with the mrt
command.
推荐答案
尝试将文件放入应用程序的"packages"目录中并执行: 流星添加[package-name]
try to put your files in the 'packages' directory of your app and execute : meteor add [package-name]
这篇关于在Meteor上安装本地软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!