Picture of Craig Dooley
Authoring Tool Install Help
by Craig Dooley - Sunday, 14 October 2018, 6:13 PM
 

I'm trying to install the Authoring tool.  I've gone through the 'install on server steps' but after cloning the adapt_authoring project and running npm install --production, I get the warnings/errors below.

Can anyone advise please?

 

[server1 adapt]# git clone https://github.com/adaptlearning/adapt_authoring.git
Cloning into 'adapt_authoring'...
remote: Enumerating objects: 166, done.
remote: Counting objects: 100% (166/166), done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 29918 (delta 87), reused 104 (delta 45), pack-reused 29752
Receiving objects: 100% (29918/29918), 43.23 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (18507/18507), done.
[18:01] [server1 adapt] # npm install --production
npm WARN saveError ENOENT: no such file or directory, open '/adapt/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/adapt/package.json'
npm WARN adapt No description
npm WARN adapt No repository field.
npm WARN adapt No README data
npm WARN adapt No license field.

up to date in 0.768s
found 0 vulnerabilities

[server1 adapt] # node install
module.js:550
throw err;

Error: Cannot find module '/adapt/install'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Picture of Craig Dooley
Re: Authoring Tool Install Help
by Craig Dooley - Monday, 15 October 2018, 8:10 AM
 

Update:

After some further Googling, I have run:

# npm init

which has resolved one issue (package.json error).

I still get these errors however:

# npm install --production
npm WARN root@1.0.0 No description
npm WARN root@1.0.0 No repository field.

# node install
module.js:550
throw err;
^

Error: Cannot find module '/root/install'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

Picture of Craig Dooley
Re: Authoring Tool Install Help
by Craig Dooley - Tuesday, 16 October 2018, 7:00 AM
 

Resolved: the WARN errors weren't important and the node install error was me not changing directory to adapt_authoring before running the command!