2016-04-21 112 views
1

我做了什麼:谷歌AppRTC Web服務器

  1. 我從鏈接https://github.com/ISBX/apprtc-ios 下載AppRTC演示iOS和也從
    https://github.com/ISBX/apprtc-server
  2. 我已經試過的鏈接下載的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 

我需要做些什麼來解決這個問題?

回答

-1

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演示

0

修改的package.json到:

... 
"devDependencies": { 
    "grunt": ">=0.4.5 <1.0.0", 
    ... 
} 

可以解決這個問題。