2016-11-25 63 views
1

我看這個鏈接 https://github.com/BitOfUniverse/kurento-one2many-with-rooms/issues/1 並決定我的本地機器上通過VMvare Ubuntu的服務器上運行14.04 TLSKurento一對多士客房

開始運行在此之前, 我在Ubuntu通過這個全球化志願服務青年安裝KMS 6頁。

doc-kurento.readthedocs.io/en/stable/installation_guide.html#migrating-from-kms-v5-to-v6

KMS安裝後,我按照這個鏈接以低於作爲全球化志願服務青年

doc-kurento.readthedocs.io/en/stable/tutorials/node/tutorial-one2many.html

此鏈接有點不同的我的安裝步驟

這裏是我的安裝步驟:

curl -sL https://deb.nodesource.com/setup | sudo bash - 
sudo apt-get install -y nodejs 
sudo npm install -g bower 

這一步後

我請按照下列

git clone https://github.com/BitOfUniverse/kurento-one2many-with-rooms.git 
cd kurento-tutorial-node/kurento-one2many-call 
git checkout 6.6.0 
npm install 

在那裏,我用你的git地址:git的克隆https://github.com/BitOfUniverse/kurento-one2many-with-rooms.git

直到這些步驟everthing看起來很好。但是,當我運行此命令

npm start 

我得到以下日誌文​​件中的錯誤

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose node symlink /usr/bin/node 5 verbose run-script [ 'prestart', 'start', 'poststart' ] 6 info prestart [email protected] 7 info start [email protected] 8 verbose unsafe-perm in lifecycle true 9 info [email protected] Failed to exec start script 10 verbose stack Error: [email protected] start: node server.js 10 verbose stack Exit status 8 10 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:217:16) 10 verbose stack at EventEmitter.emit (events.js:98:17) 10 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14) 10 verbose stack at ChildProcess.emit (events.js:98:17) 10 verbose stack at maybeClose (child_process.js:766:16) 10 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:833:5) 11 verbose pkgid [email protected] 12 verbose cwd /home/can/kurento-one2many-with-rooms 13 error Linux 4.4.0-31-generic 14 error argv "/usr/bin/node" "/usr/bin/npm" "start" 15 error node v0.10.48 16 error npm v2.15.1 17 error code ELIFECYCLE 18 error [email protected] start: node server.js 18 error Exit status 8 19 error Failed at the [email protected] start script 'node server.js'. 19 error This is most likely a problem with the kurento-one2many-call package, 19 error not with npm itself. 19 error Tell the author that this fails on your system: 19 error node server.js 19 error You can get information on how to open an issue for this project with: 19 error npm bugs kurento-one2many-call 19 error Or if that isn't available, you can get their info via: 19 error 19 error npm owner ls kurento-one2many-call 19 error There is likely additional logging output above. 20 verbose exit [ 1, true ]

我的問題是,我是什麼問題?當我嘗試在Kurento上運行示例時,沒有任何錯誤。但在那裏我得到這些錯誤。

另外,我嘗試安裝socket.Io等,當我得到錯誤,但沒有解決我的問題。

我在互聯網上發現8080端口的問題,並殺死這個端口上的應用程序,但我仍然有錯誤。

我該怎麼辦?如果你幫助我,我會很開心。

Thaks很多你的答案中,有一個很好的和hapy一天:) :) :)

最佳Rigards

回答

0

有一個postinstall腳本,你需要構建項目(npm run postinstall)後運行。在項目readFileSync的項目34 & 35使用相對路徑不起作用。你可以用path.join或者簡單地硬編碼完整路徑來解決這個問題。另外用於SSL密鑰的文件名與github上的不一樣,應該改變。

畢竟你可能會構建項目,但它不起作用。 Here是一個精緻的叉子。