Picture of Andy Muir
Installing Authoring Tool - setx
by Andy Muir - Friday, 30 January 2015, 1:21 PM
 

Hi All

Having had a chat with Sven at Learning Tec yesterday I am trying to get up and running with the current build of the authoring tool. Unfortunately I am getting stuck at almost first hurdle.

I have uninstalled node and installed nodist but when I type:

setx /M PATH "C:\Users\Andy\nodist\bin;%PATH%"

or 

setx /M PATH "nodist\bin;%PATH%"

I just get

ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).

Can anyone give me a suggestion about how to proceed? My searches on Google havent helped.

 

Thanks

Andy

 

Picture of Petra Nussdorfer
Re: Installing Authoring Tool - setx
by Petra Nussdorfer - Friday, 30 January 2015, 2:16 PM
 

If you work with windows you can try to set the variables manually like this:

http://www.computerhope.com/issues/ch000549.htm

 

Best regards,

Petra

Picture of Andy Muir
Re: Installing Authoring Tool - setx
by Andy Muir - Friday, 30 January 2015, 3:24 PM
 

Hi Petra

Thanks for reply. I did look at that, but wasnt sure what I was meant to do. I tried below, with and without /M but when I try next step -

nodist selfupdate 

I get error nodist: command not found?

Picture of Andy Muir
Re: Installing Authoring Tool
by Andy Muir - Monday, 2 February 2015, 12:37 PM
 

OK, I am making progress, but have encountered the same problem at home and in the office. When I get to Running the Authoring Tool and run 'grunt server' It starts to run but then gives me fatal error:

 

C:\adapt\adapt_authoring>grunt server
Running "copy:main" (copy) task
Copied 14 files
Running "less:dist" (less) task
File frontend/src/adaptbuilder/css/adapt.css created.
Running "handlebars:compile" (handlebars) task
File frontend/src/templates/templates.js created.
Running "start" task
Running "open:server" (open) task
info: starting server here
Fatal error: listen EADDRINUSE

 I open browser to http://localhost:3000/ and start to install the framework. It runs for a few minutes, then suddenly stops with an "undefined".  The CLI window says:

error: exec error: Error: Command failed:
info: Error cloning framework [Command failed: ]

Can anyone advise why I am getting this? Must be doing something wrong as I am getting it on home laptop and office PC.

Attached some screenshots for more info, any help much appreciated.

Andy




Picture of Andy Muir
Re: Installing Authoring Tool
by Andy Muir - Monday, 2 February 2015, 1:38 PM
 

OK, I think I got it working by just going to the newly created adapt_framework folder in CLI and using npm install.

Picture of Stephen Bates
Re: Installing Authoring Tool
by Stephen Bates - Monday, 2 February 2015, 4:38 PM
 

I got the same error when I ran grunt server in the separate console. If you figure it out i'd be interested to find out what the issue is. I poked around on stackoverflow and apparently EADDRINUSE is a node.js error related to a port already being in use when node tries to bind a server to it.

Picture of Andy Muir
Re: Installing Authoring Tool
by Andy Muir - Monday, 2 February 2015, 5:42 PM
 

Hi Stephen

I got it working, but only through trial and error and a lot of guess work, so what I did probably isnt the way it is supposed to be done.

 

I read about the error meaning a port is already in use, and tried closing the first cli window where you ran "node server" before running the "grunt server". This stopped the EADDRINUSE error, but I still got stuck halfway through the install of adapt_framework within the authoring tool folder.

Got it to fully install and run by using cli to navigate to adapt_framework folder and running npm install.

Hopefully someone who know what they are doing can advise better.

Andy