谷歌AppRTC Web服务器
问题描述:
我做了什么:谷歌AppRTC Web服务器
- 我从链接https://github.com/ISBX/apprtc-ios 下载AppRTC演示iOS和也从
https://github.com/ISBX/apprtc-server -
我已经试过的链接下载的Web服务器将WebServer安装到我的ubntu中14.04:
以下步骤我已按照安装
1.Open终端
2.Open特定目录
3.Typed命令NPM安装在终端
4.During安装它显示一个错误
错误:
npm ERR! Linux 4.2.0-35-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.10.44
npm ERR! npm v2.15.0
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.1
npm ERR! peerinvalid Peer [email protected] wants [email protected]>=0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.1
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]~0.4.0
npm ERR! Please include the following file with any support request:
npm ERR! /home/Downloads/apprtc-server-master/npm-debug.log
我需要做些什么来解决这个问题?
答
npm作为nodejs的一部分进行分配。
sudo apt-get install nodejs
sudo npm install -g npm
在Ubuntu 14.04的默认包安装在/ usr/bin中/但的NodeJS需要咕噜在/ usr/bin中/节点可执行。这是安装在一些Ubuntu套件上;如果缺少它,您可以通过安装的NodeJS遗留包添加此,
sudo apt-get install nodejs-legacy
这是最简单的使用-g标志从NPM安装咕噜-CLI的共享版本。这将允许您从/ usr/local/bin访问grunt命令。更多信息可以在gruntjs入门手册中找到。
sudo npm -g install grunt-cli
省略-g标志会将grunt-cli安装到node_modules目录下的当前目录中。
设置环境只需要以下条件:
git clone https://github.com/ISBX/apprtc-node-server.git ./apprtc-node-server
cd ./apprtc-node-server
sudo npm install
运行AppRTC节点服务器
的apprtc节点,服务器使用ExpressJS。运行安装程序后,节点服务器只需要执行:
node ./bin/www
导航到http://localhost:3000运行的WebRTC演示
答
修改的package.json到:
...
"devDependencies": {
"grunt": ">=0.4.5 <1.0.0",
...
}
可以解决这个问题。