如何使用节点模块kappa?

时间:2014-03-06 15:24:56

标签: node.js npm node-modules

我在我的计算机上的kappa-server目录中安装了节点模块kappa local,如下所述:https://github.com/xjamundx/kappa/tree/patch-1#quickstart

我的config.json看起来:

{
    "servers": [
        {
            "host": "localhost",
            "port": 8000
        }
    ],
    "plugins": {
        "kappa": {
            "paths": [
                "https://registry.npmjs.org/"
            ]
        }
    }
}

如果我卷曲验证命令:http://localhost:8000/-/all 表明: {"statusCode":404,"error":"Not Found"}

我必须在哪个目录中放置自己的存储库,从我自己的本地npm存储库中克隆存储库的命令是什么? 我无法找到答案。

1 个答案:

答案 0 :(得分:3)

我必须先安装一个真正的npm存储库。像reggie或npmjs.org