Hi Aryak,

the app obviously has to be configured with an environment variable set, 
named $STREAM_URL.

You can set the value of $STREAM_URL while starting the application as 
follows:

$ STREAM_URL=http://possibly.getstream.io/url npm start

I dont know what getstream.io is and what kind of "stream URL" the app 
expects, but hopefully this gave you some hints as to getting the app 
running?

- Phillip

On Tuesday, March 31, 2015 at 4:14:14 PM UTC+2, Aryak Sengupta wrote:
>
> Hi everyone, 
>  
> I am trying to run the GetStream/stream-nodejs 
> <https://github.com/GetStream/stream-nodejs> example app of getStream.io 
> . But I am facing the following error. 
>
>
>
> var STREAM_URL = process.env.STREAM_URL.replace(/[@=:]/g, '/').split('/');
>                                        ^
> TypeError: Cannot read property 'replace' of undefined
>     at Object.<anonymous> (E:\Mean.js 
> stuffs\stream-nodejs\config\config.js:5:40
> )
>     at Module._compile (module.js:460:26)
>     at Object.Module._extensions..js (module.js:478:10)
>     at Module.load (module.js:355:32)
>     at Function.Module._load (module.js:310:12)
>     at Module.require (module.js:365:17)
>     at require (module.js:384:17)
>     at Object.<anonymous> (E:\Mean.js stuffs\stream-nodejs\app.js:3:14)
>     at Module._compile (module.js:460:26)
>     at Object.Module._extensions..js (module.js:478:10)
>
> npm ERR! Windows_NT 6.1.7600
> npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program 
> Files\\nodejs
> \\node_modules\\npm\\bin\\npm-cli.js" "start"
> npm ERR! node v0.12.0
> npm ERR! npm  v2.5.1
> npm ERR! code ELIFECYCLE
> npm ERR! [email protected] start: `node app.js`
> npm ERR! Exit status 1
> npm ERR!
> npm ERR! Failed at the [email protected] start script 'node app.js'.
> npm ERR! This is most likely a problem with the Stream package,
> npm ERR! not with npm itself.
> npm ERR! Tell the author that this fails on your system:
> npm ERR!     node app.js
> npm ERR! You can get their info via:
> npm ERR!     npm owner ls Stream
> npm ERR! There is likely additional logging output above.
>
> npm ERR! Please include the following file with any support request:
> npm ERR!     E:\Mean.js stuffs\stream-nodejs\npm-debug.log
>
>
> Any help regarding this will be appreciated. Thanks
>
>
> P.S. - I am very new to NodeJS. 
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/211367ce-2bf0-42a1-a6c5-a77c31e2a192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to