Picture of Fabio Beoni
Installation fails on Ubuntu Mate
by Fabio Beoni - Wednesday, 14 December 2016, 1:00 PM
 

Hi,

I get this error while installing on Ubuntu Mate / Node 6.9.2 ... pre-install script fails.

Full log is attached.

npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "adapt-cli"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! nodegit@0.16.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodegit@0.16.0 install script 'node lifecycleScripts/preinstall && node lifecycleScripts/install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nodegit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node lifecycleScripts/preinstall && node lifecycleScripts/install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nodegit
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nodegit
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/administrator/npm-debug.log
npm ERR! code 1

Picture of Matt Leathes
Re: Installation fails on Ubuntu Mate
by Matt Leathes - Wednesday, 14 December 2016, 1:45 PM
 

Are you trying to install the authoring tool? If so, note that it only supports node v4.2.x (https://github.com/adaptlearning/adapt_authoring/wiki/Install-on-Server#install-nodejs)

You're running Node 6.9.2 according to the log you posted

Picture of Fabio Beoni
Re: Installation fails on Ubuntu Mate
by Fabio Beoni - Wednesday, 14 December 2016, 8:15 PM
 

Changed to 4.2.X but still having same problem... Log attached.

Thanks a-lot for help!

Picture of Matt Leathes
Re: Installation fails on Ubuntu Mate
by Matt Leathes - Thursday, 15 December 2016, 5:41 PM
 

So, some of us did a bit of testing today with the adapt-cli install and it does seem to be failing a fair bit... we're trying to secure some time for someone to look into it in more depth but this close to Christmas it's difficult to find any volunteers with both the time and the knowledge!

It seems to be nodegit that's the problem for many people

Picture of Gareth Walker
Re: Installation fails on Ubuntu Mate
by Gareth Walker - Saturday, 17 December 2016, 10:27 PM
 

Mentioned in another forum - but just in case: I was having adapt-cli problems on a Mac. For me, updating Xcode to the most recent version seems to have helped fix.

Picture of Matt Leathes
Re: Installation fails on Ubuntu Mate
by Matt Leathes - Friday, 16 December 2016, 10:46 AM
 

According to this post, node got renamed to nodejs on Ubuntu and so you need to install nodejs-legacy...

Picture of Fabio Beoni
Re: Installation fails on Ubuntu Mate
by Fabio Beoni - Saturday, 17 December 2016, 10:52 AM
 

Hi,

solved the issue by creating a symlink from nodejs to node:

 

sudo ln -s /usr/bin/nodejs /usr/bin/node
Picture of Matt Leathes
Re: Installation fails on Ubuntu Mate
by Matt Leathes - Sunday, 18 December 2016, 8:46 PM
 

Nice workaround!