Azure / azure-relay-node

☁️Node.js library for Azure Relay Hybrid Connections
https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-what-is-it
MIT License
12 stars 15 forks source link

Cannot find module 'wait.for' #4

Closed ddobric closed 7 years ago

ddobric commented 7 years ago

When trying to run websocket sample , getting following error:

Error: Cannot find module 'wait.for' at Module._resolveFilename (module.js:351:5) at Module._load (module.js:300:3) at Module.prototype.require (module.js:377:3) at require (internal/module.js:16:7) ...

Before start, I added following (the only one) dependency in package.json "dependencies": { "hyco-websocket":"latest" }

After getting the error shown above, I added missing package: "dependencies": { "hyco-websocket":"latest", "wait.for" : "latest" },

And finally getting this error: ... gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "C:\Users***\AppData\Local\Programs\Python\Python35-32", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs (chakracore)\node_modules\npm\node_modules\node-gyp\lib\configure.js:117:5) gyp ERR! stack at Anonymous function (C:\Program Files\nodejs (chakracore)\node_modules\npm\node_modules\node-gyp\lib\configure.js:72:11) gyp ERR! stack at Anonymous function (fs.js:82:5) gyp ERR! System Windows_NT 10.0.14393 ...

jtaubensee commented 7 years ago

@ddobric - Thanks for bringing this up. In the meantime just wanted to make sure that you were able to get the hyco-ws sample up and running?

https://github.com/Azure/azure-relay-node/tree/master/hyco-ws

https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-hybrid-connections-node-get-started

clemensv commented 7 years ago

Confirmed bug. Will fix.

clemensv commented 7 years ago

Fix checked in. Will push the NPM update later today.

jtaubensee commented 7 years ago

FYI - 2e4e54d is the commit with the fix.