我做了什么:
我已经从链接https://github.com/ISBX/apprtc-ios下载了iOS的AppRTC演示。
并从链接中下载WebServer
https://github.com/ISBX/apprtc-server
我尝试将WebServer安装到ubntu 14.04中:
按照我已遵循的步骤进行安装
1.打开终端
2.打开特定目录
3.在终端中键入命令npm install
4,安装过程中出现错误
错误:
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 grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! Please include the following file with any support request:
npm ERR! /home/Downloads/apprtc-server-master/npm-debug.log
我该怎么做才能解决这个问题?
最佳答案
将package.json修改为:
...
"devDependencies": {
"grunt": ">=0.4.5 <1.0.0",
...
}
可以解决这个问题。