2016-11-25 61 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是一个精致的叉子。