Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orion » One minute install as advertised, but opps...(Error when "starting" node app in shell)
One minute install as advertised, but opps... [message #1127541] Sun, 06 October 2013 20:15 Go to next message
Robin Mattern is currently offline Robin MatternFriend
Messages: 2
Registered: October 2013
Junior Member
I just discovered Orion today while watching the video listed below. Ken said I could install the NodeJS version of Orion in one minute and he was right! (except I had to hunt for the wiki page that I couldn't quite hear)

So I followed these steps to install it:

  1. Open Windows Command Prompt, cmd.exe
  2. Install Orion with the command, npm install orion
  3. Create a batch file, Start-Orion.bat, to run Orion from anywhere
     @echo off
       set  aPath=Node-apps\node_modules\orion
       set  aWS=Web-Root\Orion\Workspace1
      node %aPath%\server.js -p 8081 -w %aWS%
  4. Execute the batch file, Start-Orion
  5. Use Chrome to goto URL: localhost:8081

And it's running!!! What a beautiful piece of work. But, alas, when I went to
the Shell and issued the command,

node start hello.js
, with one line of Node javascript,
console.log( "hello" )

I got the following error:

TypeError: Cannot read property 'Location' of undefined

Did I miss a configuration step?

Thanks for your support.

Robin
Re: One minute install as advertised, but opps... [message #1128281 is a reply to message #1127541] Mon, 07 October 2013 14:32 Go to previous messageGo to next message
Mark Macdonald is currently offline Mark MacdonaldFriend
Messages: 22
Registered: July 2009
Junior Member
No, you didn't miss anything... this is a bug. Did you by any chance create hello.js directly under Workspace1? That is what triggers this problem for me.

Just create a subfolder of Workspace1, move hello.js into the subfolder, and then the 'node' command should work.

I opened a bug for this in our bug system.
Re: One minute install as advertised, but opps... [message #1136009 is a reply to message #1128281] Sun, 13 October 2013 15:33 Go to previous message
Robin Mattern is currently offline Robin MatternFriend
Messages: 2
Registered: October 2013
Junior Member
That did indeed solve the problem. Thanks, Robin
Previous Topic:Can't using Hangul.(Korean language)
Next Topic:Problems starting Orion (using the source code setup)
Goto Forum:
  


Current Time: Mon Dec 22 11:23:07 GMT 2014

Powered by FUDForum. Page generated in 0.01589 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software