Picture of Avas B
Error: Cannot find module '/home/administrator/adapt_authoring/install'
by Avas B - Friday, 13 February 2015, 6:27 PM
 

Hello,

I am trying to install adapt authoring tool from the learningpool-merge branch. (https://github.com/adaptlearning/adapt_authoring/tree/learningpool-merge)

When I run the install script "node install", I am getting the following error

administrator@cwrtp-adapt:~/adapt_authoring$ node install
module.js:338
throw err;
^
Error: Cannot find module '/home/administrator/adapt_authoring/install'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

I see that the $NODE_PATH is not set from the echo $NODE_PATH. So I tried: export NODE_PATH=/home/administrator/node_modules

And ran the node install command, but still got the error above. Any help is appreciated.

Thank you.

Picture of Avas B
Re: Error: Cannot find module '/home/administrator/adapt_authoring/install'
by Avas B - Friday, 13 February 2015, 10:25 PM
 

Update: I was able to install the adapt authoring tool.

For some reason, git clone https://github.com/adaptlearning/adapt_authoring.git was not downloading the last 3 commits, even after switching to learningpool-merge branch (git log command was not showing me the last 3 commits).

So, I did wget https://github.com/adaptlearning/adapt_authoring/archive/learningpool-merge.zip, and ran the install script from there and installed fine.

Picture of Greg Pell
Re: Error: Cannot find module '/home/administrator/adapt_authoring/install'
by Greg Pell - Monday, 16 February 2015, 12:44 AM
 

Have you been able to get the preview function to work in this release?

Picture of Greg Pell
Re: Error: Cannot find module '/home/administrator/adapt_authoring/install'
by Greg Pell - Monday, 16 February 2015, 1:11 AM
 

Nevermind.. I did a completely fresh install again and now it's working... :-/

 

Cheers