Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy on windows doesn't work #168

Open
Yehonal opened this issue Dec 18, 2016 · 2 comments
Open

Proxy on windows doesn't work #168

Yehonal opened this issue Dec 18, 2016 · 2 comments

Comments

@Yehonal
Copy link
Contributor

Yehonal commented Dec 18, 2016

This error happens on windows with proxy command

i've installed all dependencies and using latest nodejs version

npm run proxy 3724 '192.168.1.2:3724'

> wowser@0.0.1 proxy C:\Hw2_Hybrid\usr\workspace\emu-wow\wowser
> websockify "3724" "'192.168.1.2:3724'"

C:\Hw2_Hybrid\usr\workspace\emu-wow\wowser\node_modules\policyfile\lib\server.js:253
Object.keys(process.EventEmitter.prototype).forEach(function proxy (key){
                                ^

TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (C:\Hw2_Hybrid\usr\workspace\emu-wow\wowser\node_modules\policyfile\lib\server.js:253:33)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Hw2_Hybrid\usr\workspace\emu-wow\wowser\node_modules\policyfile\index.js:1:80)
    at Module._compile (module.js:571:32)
@timkurvers
Copy link
Member

According to this issue it's due to policyfile using process.EventEmitter, which has been removed in Node 7. Using Node 6 should work.

This is not wowser-specific, but is probably something we should document for the time being.

@Yehonal
Copy link
Contributor Author

Yehonal commented Dec 18, 2016

Well maybe in requirements :) thanks anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants