rtc-switchboardのpackage.jsonを参考に
https://github.com/streamroot/clappr-p2phls-plugin/blob/master/package.json
を編集。
"dependencies": { "clappr": "0.0.69", "rtc-bufferedchannel": "latest", "rtc-quickconnect": "2.0.0", "log-with-style": "0.1.5", "mousetrap": "0.0.1", }
rtc-quickconnectを最新版へ、bufferutil, utf-8-validateを追加。
[plian]
“dependencies”: {
“clappr”: “0.0.69”,
“rtc-bufferedchannel”: “latest”,
“rtc-quickconnect”: “latest”,
“log-with-style”: “0.1.5”,
“mousetrap”: “0.0.1”,
“bufferutil”: “^1.2.1”,
“utf-8-validate”: “^1.2.1”
}
[/plain]
これで
npm install gulp build
しかしclappr-p2phls-pluginの本体で”Choked, getting from CDN”のエラーが出るので、本体自体を修正する必要あり