windows不支持用于自动测试的travis multirunner。
那里。我很难建造https://github.com/webrtc/samples以8.1获胜。我正在尝试安装npm依赖项。但也有一些错误,如下所示。node.js版本为v4.2.3,npm版本为v2.14.7
D:_TempAppRTCsamples>npm install
> travis-multirunner@3.0.0 postinstall D:_TempAppRTCsamplesnode_modulestrav
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:_TempAppRTCsamplesnode_moduleschromedriver
> node install.js
Downloading http://chromedriver.storage.googleapis.com/2.20/chromedriver_win32.z
ip
Saving to C:UsersJISAppDataLocalTempchromedriverchromedriver_win32.zip
Receiving...
Received 782K...
Received 1564K...
Received 2346K...
Received 2398K total.
Extracting zip contents
Copying to target path D:_TempAppRTCsamplesnode_moduleschromedriverlibchr
omedriver
Done. ChromeDriver binary available at D:_TempAppRTCsamplesnode_moduleschro
medriverlibchromedriverchromedriver.exe
> utf-8-validate@1.2.1 install D:_TempAppRTCsamplesnode_modulesselenium-web
drivernode_moduleswsnode_modulesutf-8-validate
> node-gyp rebuild
D:_TempAppRTCsamplesnode_modulesselenium-webdrivernode_moduleswsnode_mod
ulesutf-8-validate>if not defined npm_config_node_gyp (node "C:Program Filesn
odejsnode_modulesnpmbinnode-gyp-bin\....node_modulesnode-gypbinnode-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:_TempAppRTCsamplesnode_modulesselenium-webdrivern
ode_moduleswsnode_modulesutf-8-validatebuildReleasevalidation.lib and o
bject D:_TempAppRTCsamplesnode_modulesselenium-webdrivernode_modulesws
node_modulesutf-8-validatebuildReleasevalidation.exp
Generating code
Finished generating code
validation.vcxproj -> D:_TempAppRTCsamplesnode_modulesselenium-webdriver
node_moduleswsnode_modulesutf-8-validatebuildRelease\validation.node
> bufferutil@1.2.1 install D:_TempAppRTCsamplesnode_modulesselenium-webdriv
ernode_moduleswsnode_modulesbufferutil
> node-gyp rebuild
D:_TempAppRTCsamplesnode_modulesselenium-webdrivernode_moduleswsnode_mod
ulesbufferutil>if not defined npm_config_node_gyp (node "C:Program Filesnodej
snode_modulesnpmbinnode-gyp-bin\....node_modulesnode-gypbinnode-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:_TempAppRTCsamplesnode_modulesselenium-webdrivern
ode_moduleswsnode_modulesbufferutilbuildReleasebufferutil.lib and objec
t D:_TempAppRTCsamplesnode_modulesselenium-webdrivernode_moduleswsnod
e_modulesbufferutilbuildReleasebufferutil.exp
Generating code
Finished generating code
bufferutil.vcxproj -> D:_TempAppRTCsamplesnode_modulesselenium-webdriver
node_moduleswsnode_modulesbufferutilbuildRelease\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:_TempAppRTCsamplesnpm-debug.log
D:_TempAppRTCsamples>node test/server.js
D:_TempAppRTCsamplestestserver.js:18
key: keys.serviceKey,
^
TypeError: Cannot read property 'serviceKey' of undefined
at D:_TempAppRTCsamplestestserver.js:18:14
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:246:24
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:150:24
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:71:20
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:951:20
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:930:13
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:829:20
at D:_TempAppRTCsamplesnode_modulespemlibpem.js:999:20
at F (D:_TempAppRTCsamplesnode_modulespemnode_moduleswhichwhich.js:7
3:25)
at E (D:_TempAppRTCsamplesnode_modulespemnode_moduleswhichwhich.js:7
6:29)
谢谢你的回复。
使用Virtualbox设置虚拟机非常容易。
事实上,我在家里的游戏电脑上就这么做了,刚刚在Virtualbox虚拟机中安装了最新的Debian、node.js、Sublime,然后我使用Virtualbox无缝模式,只需将Windows放在主机操作系统桌面上的虚拟机中。
效果很好!