【问题标题】:Steps to create node-js client kurento opencv module创建node-js客户端kurento opencv模块的步骤
【发布时间】:2016-03-28 07:43:04
【问题描述】:

我的工作

1.我使用了opencv-plugin-sample(来自链接https://github.com/Kurento/kms-opencv-plugin-sample)并启动了kuretoMediaServer

2.在客户端我使用了jsjava,都很好用

3.对于js我用的是命令

  cmake .. -DGENERATE_JS_CLIENT_PROJECT=TRUE
  npm install grunt grunt-browserify grunt-contrib-clean grunt-jsdoc grunt-npm2bower-sync minifyify
  grunt

生成js文件夹和dist文件夹

4.对于java我使用命令

  cmake .. -DGENERATE_JAVA_CLIENT_PROJECT=TRUE
  make java_install

我必须做什么

1.现在我需要用android运行kurento,所以我使用了以下链接https://github.com/apeunit/AppRTC-Kurento-Example

2.在客户端他们使用node-js与KMS进行通信

3.现在我正在尝试在现有代码中添加opencv示例,参考链接http://doc-kurento.readthedocs.org/en/stable/mastering/develop_kurento_modules.html#examples,我更改了package.json文件但它显示错误

 'kurento-module-opencvpluginsample' is not in the npm registry.

4.当我检查人群检测器样本(https://github.com/Kurento/kurento-tutorial-node/tree/master/kurento-crowddetector)时,模块(kurento-module-crowddetector)存在于node_module文件夹中,对于opencv-sample

是否需要手动添加模块(kurento-module-opencvpluginsample)?或

有没有像上面java和js那样在module(kurento-module-opencvpluginsample)文件夹中生成文件的默认步骤?

【问题讨论】:

    标签: npm kurento


    【解决方案1】:

    npm 通过检查 npm 注册表按名称和版本解析包(有关更多信息,请参阅this 链接)此行是什么

    kurento-module-opencvpluginsample' is not in the npm registry.

    告诉你,它在 npm 注册表中找不到你的模块。这并不奇怪,因为它仅位于您的本地计算机中。请查看this SO answer about how to specify local modules as npm deps。

    【讨论】:

    • 感谢您的回复,上面的答案是关于将模块与 npm 链接。但是我需要为 opencvpluginsample(kurento-module-opencvpluginsample) 生成节点模块的步骤。是否有任何自动化步骤生成为 js 和 java 创建的节点模块?
    • 它的生成方式相同。您应该在 JS 文件夹中看到它。
    猜你喜欢
    • 2022-08-02
    • 2015-05-20
    • 2011-02-03
    • 1970-01-01
    • 2020-04-10
    • 1970-01-01
    • 2016-11-05
    • 2017-09-30
    • 1970-01-01
    相关资源
    最近更新 更多