首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建AppRTC服务器

构建AppRTC服务器
EN

Stack Overflow用户
提问于 2015-12-09 19:47:57
回答 2查看 835关注 0票数 1

那里。我很难在win 8.1中构建https://github.com/webrtc/samples。我正在尝试安装npm依赖项。但是有一些错误如下所示。node.js版本为v4.2.3,npm版本为v2.14.7。

代码语言:javascript
复制
D:\_Temp\AppRTC\samples>npm install

> travis-multirunner@3.0.0 postinstall D:\_Temp\AppRTC\samples\node_modules\trav
is-multirunner
> ./bin/travis-sync

'.' is not recognized as an internal or external command,
operable program or batch file.

> chromedriver@2.20.0 install D:\_Temp\AppRTC\samples\node_modules\chromedriver
> node install.js

Downloading http://chromedriver.storage.googleapis.com/2.20/chromedriver_win32.z
ip
Saving to C:\Users\JIS\AppData\Local\Temp\chromedriver\chromedriver_win32.zip
Receiving...
Received 782K...
Received 1564K...
Received 2346K...
Received 2398K total.
Extracting zip contents
Copying to target path D:\_Temp\AppRTC\samples\node_modules\chromedriver\lib\chr
omedriver
Done. ChromeDriver binary available at D:\_Temp\AppRTC\samples\node_modules\chro
medriver\lib\chromedriver\chromedriver.exe

> utf-8-validate@1.2.1 install D:\_Temp\AppRTC\samples\node_modules\selenium-web
driver\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver\node_modules\ws\node_mod
ules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\n
odejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gy
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  validation.cc
  win_delay_load_hook.c
     Creating library D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver\n
  ode_modules\ws\node_modules\utf-8-validate\build\Release\validation.lib and o
  bject D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver\node_modules\ws
  \node_modules\utf-8-validate\build\Release\validation.exp
  Generating code
  Finished generating code
  validation.vcxproj -> D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver
  \node_modules\ws\node_modules\utf-8-validate\build\Release\\validation.node

> bufferutil@1.2.1 install D:\_Temp\AppRTC\samples\node_modules\selenium-webdriv
er\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver\node_modules\ws\node_mod
ules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js
" rebuild )  else (node  rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  bufferutil.cc
  win_delay_load_hook.c
     Creating library D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver\n
  ode_modules\ws\node_modules\bufferutil\build\Release\bufferutil.lib and objec
  t D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver\node_modules\ws\nod
  e_modules\bufferutil\build\Release\bufferutil.exp
  Generating code
  Finished generating code
  bufferutil.vcxproj -> D:\_Temp\AppRTC\samples\node_modules\selenium-webdriver
  \node_modules\ws\node_modules\bufferutil\build\Release\\bufferutil.node
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.2.3
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! travis-multirunner@3.0.0 postinstall: `./bin/travis-sync`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the travis-multirunner@3.0.0 postinstall script './bin/travis
-sync'.
npm ERR! This is most likely a problem with the travis-multirunner package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./bin/travis-sync
npm ERR! You can get their info via:
npm ERR!     npm owner ls travis-multirunner
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\_Temp\AppRTC\samples\npm-debug.log

D:\_Temp\AppRTC\samples>node test/server.js
D:\_Temp\AppRTC\samples\test\server.js:18
    key: keys.serviceKey,
             ^

TypeError: Cannot read property 'serviceKey' of undefined
    at D:\_Temp\AppRTC\samples\test\server.js:18:14
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:246:24
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:150:24
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:71:20
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:951:20
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:930:13
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:829:20
    at D:\_Temp\AppRTC\samples\node_modules\pem\lib\pem.js:999:20
    at F (D:\_Temp\AppRTC\samples\node_modules\pem\node_modules\which\which.js:7
3:25)
    at E (D:\_Temp\AppRTC\samples\node_modules\pem\node_modules\which\which.js:7
6:29)

谢谢您的回复。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-12-09 22:45:00

用于自动测试的travis-multirunner在windows上不受支持。

票数 -1
EN

Stack Overflow用户

发布于 2015-12-10 08:20:01

使用Virtualbox设置虚拟机非常容易。

事实上,我只是在我的游戏pc上做了这件事,刚刚在一个Virtualbox VM中安装了最新的Debian,node.js,崇高,然后我使用了Virtualbox无缝模式,它只是将Windows放在主机OS桌面之上的VM中。

效果很好!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34187702

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档