Picture of Robert Lillywhite
adapt-cli install error on Ubuntu
by Robert Lillywhite - Wednesday, 1 March 2017, 1:21 PM
 

Hi,

I have been trying to install the Adapt Framework but keep hitting errors. I am currently trying to install on a fresh install of Ubuntu Xenial server (I have also tried Debian Jessie and Windows 2012 encountering a variety of issues) but I am getting this when trying to run (as root):

npm install -g adapt-cli

62073 verbose stack Error: nodegit@0.16.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
62073 verbose stack spawn ENOENT
62073 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v7.7.0/lib/node_modules/npm/lib/utils/spawn.js:33:16)
62073 verbose stack at emitTwo (events.js:106:13)
62073 verbose stack at ChildProcess.emit (events.js:194:7)
62073 verbose stack at maybeClose (internal/child_process.js:899:16)
62073 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
62074 verbose pkgid nodegit@0.16.0
62075 verbose cwd /root
62076 error Linux 4.4.0-31-generic
62077 error argv "/root/.nvm/versions/node/v7.7.0/bin/node" "/root/.nvm/versions/node/v7.7.0/bin/npm" "install" "-g" "adapt-cli"
62078 error node v7.7.0
62079 error npm v4.1.2
62080 error file sh
62081 error code ELIFECYCLE
62082 error errno ENOENT
62083 error syscall spawn
62084 error nodegit@0.16.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
62084 error spawn ENOENT
62085 error Failed at the nodegit@0.16.0 install script 'node lifecycleScripts/preinstall && node lifecycleScripts/install'.
62085 error Make sure you have the latest version of node.js and npm installed.
62085 error If you do, this is most likely a problem with the nodegit package,
62085 error not with npm itself.
62085 error Tell the author that this fails on your system:
62085 error node lifecycleScripts/preinstall && node lifecycleScripts/install
62085 error You can get information on how to open an issue for this project with:
62085 error npm bugs nodegit
62085 error Or if that isn't available, you can get their info via:
62085 error npm owner ls nodegit
62085 error There is likely additional logging output above.
62086 verbose exit [ 1, true ]

I have attached a screen grab and the npm-debug log.

I have been messing around with this for a while trying to get it working, so if anyone has a suggestion any help would be greatly appreciated!

Thanks,

Rob


Picture of Matt Leathes
Re: adapt-cli install error on Ubuntu
by Matt Leathes - Wednesday, 1 March 2017, 4:35 PM
 

From the output it looks like you have node v7.7.0 installed - could you try again with the LTS version (currently v6.10.0)?

Picture of Robert Lillywhite
Re: adapt-cli install error on Ubuntu
by Robert Lillywhite - Friday, 3 March 2017, 1:56 PM
 

Hi Matt,

I rolled the VM back to pre-node installation then installed the latest LTS (6.10.0). grunt-cli installed fine again but I got exactly the same error for adapt-cli.

If you have any other suggestions I am open to ideas!

Thanks,

Rob

Picture of Jonathan Briggs
Re: adapt-cli install error on Ubuntu
by Jonathan Briggs - Friday, 3 March 2017, 2:46 PM
 

Hi - I've just done an OS X Server install of the adapt authoring tool and kept coming up against the same error. Eventually I realised that the server install instructions specified 'The authoring tool supports node v4.2.x.' [in bold letters] and I was ignoring it and running 7.7.1. So I picked up the package for v4.2.6 and on install it rolled back to that and the error went away. Not completely sure it'll help you on a different platform but worth a try?

Jonathan

Picture of Matt Leathes
Re: adapt-cli install error on Ubuntu
by Matt Leathes - Friday, 3 March 2017, 3:16 PM
 

That only applies to the authoring tool, the adapt/cli & framework itself should work fine with the LTS version of Node.

I've actually just remembered what is probably causing this, see this forum post.

Picture of Robert Lillywhite
Re: adapt-cli install error on Ubuntu
by Robert Lillywhite - Friday, 3 March 2017, 2:51 PM
 

I have managed to get it installed and working now. I did the following two things differently at the same time, so I am not sure which one (or both) of them made the difference...

1. I installed as a normal user instead of root

2. I installed adapt-cli before grunt-cli

 

Rob