在Meteor上安装本地软件包 [英] Installing a local package on Meteor

查看:92
本文介绍了在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆