Picture of Bruno BAUDRY
Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Bruno BAUDRY - Wednesday, 7 December 2016, 2:53 PM
 

Hi there.

installing on a ubuntu 16.04 and following the steps of :

https://github.com/adaptlearning/adapt_authoring/wiki/Install-on-Server

Running sudo npm install -g adapt-cli

Yields the following message.

npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "adapt-cli"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! nodegit@0.16.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
npm ERR! spawn ENOENT
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/bbaudry/npm-debug.log
npm ERR! code 1

 

The full log is attached.

Thanks in advance for any enlightments.

Bruno

Picture of Bruno BAUDRY
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Bruno BAUDRY - Thursday, 8 December 2016, 5:01 PM
 

Hi

Was my question off topic, unclear or nobody as the answer ?

 

Cheers

Picture of Matt Leathes
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Matt Leathes - Thursday, 8 December 2016, 6:13 PM
 

Nope, we've just all been very busy (or on holiday) I suspect!

What version of node are you using? It may be that it's either too new or too old.. I don't use the authoring tool so I'm not best placed to tell, maybe ask in the authoring tool Gitter chat ?

Picture of Bruno BAUDRY
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Bruno BAUDRY - Wednesday, 14 December 2016, 11:28 AM
 

Hi Matt.

thanks for the lead :)

Bruno

Picture of Matt Leathes
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Matt Leathes - Thursday, 15 December 2016, 1:06 PM
 

No problem. Did you resolve this or it is still occurring?

Picture of Fabio Beoni
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Fabio Beoni - Thursday, 15 December 2016, 4:13 PM
 

Hello Bruno,

me too I'm experiencing the same issue you have... Did you find a solution for it?

Thanks for help.

Picture of Bruno BAUDRY
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Bruno BAUDRY - Thursday, 15 December 2016, 4:54 PM
 

Hi,

I progressed a little bit

After now this error :

npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! phantomjs-prebuilt@2.1.14 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.14 install script 'node install.js'.
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 phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/bbaudry/app/adapt_authoring/adapt_authoring/npm-debug.log
bbaudry@bbs1prod:~/app/adapt_authoring/adapt_authoring$ nodejs install.js
This script will install the application. Would you like to continue?

it.

 

I launched via 

nodej install.js

But just after the default value approval i have :

 

Checking configuration, please wait a moment ...
readline.js:924
throw err;
^

Error: Cannot find module 'jsonfile'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/bbaudry/app/adapt_authoring/adapt_authoring/node_modules/fs-extra/lib/index.js:1:78)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/bbaudry/app/adapt_authoring/adapt_authoring/lib/outputmanager.js:8:10)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)

 

Math or anybody any lead is welcome :)

ps :: I have poor knowldege of the framework and this new trend of package mannagers like npm.

Picture of Matt Leathes
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Matt Leathes - Thursday, 15 December 2016, 5:35 PM
 

Can I just check you're prefixing any command line commands with sudo (or running as an account with superuser privileges)?

That said, we did a bit of checking earlier today on the adapt-cli installation process and it does seem to have some issues at the moment on *nix systems, we're trying to secure some time for someone to investigate but this close to Christmas we're a bit short on volunteers!

It looks like your install might have got past that and more into the authoring tool part of the process which I'm afraid I'm not at all knowledgeable about...

Aniket Dharia
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Aniket Dharia - Thursday, 15 December 2016, 6:22 PM
 

Hi Bruno - 

Before node install did you try sudo npm install as it will install all the required modules and dependencies to execute node install correctly.

Thanks!

Regards,

Aniket

Picture of Bruno BAUDRY
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Bruno BAUDRY - Friday, 16 December 2016, 9:28 AM
 

Hi Both,

thanks for your inputs and support which gave me the will not to give up ;)

Command ran with sudo and failed @ same level.

Reading the log I see :

55070 error Tell the author that this fails on your system:
55070 error node lifecycleScripts/preinstall && node lifecycleScripts/install

On ubuntu 16.04 node is renamed nodejs.

So obviously it failed.

when calling node from shell yield :

node is not installed install it with :

apt install nodejs-legacy

did it

ran again 

sudo npm install -g adatp-cli

Install is successfull.

 

Thanks again !

PS :: Not being well versed with the framework. I don't feel comfortable yet to pull request this comment in the doc. for other users.

Picture of Matt Leathes
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Matt Leathes - Friday, 16 December 2016, 10:43 AM
 

Fantastic! And thanks so much for sharing this back, that's really useful information.

Picture of Fabio Beoni
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Fabio Beoni - Saturday, 17 December 2016, 10:30 AM
 

Hi guys,

I'm having the same issue....

So I tried to do almost like as Bruno, I installed NVM and I set the command "node" to look for NVM node version 4.2.6. Then I ran the adapt-cli install. But I could not solve the problem. Nodegit gets the same error.

Picture of Fabio Beoni
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Fabio Beoni - Saturday, 17 December 2016, 10:52 AM
 

Solved by creating a symlink from nodejs to node:

 

sudo ln -s /usr/bin/nodejs /usr/bin/node
Picture of Gareth Walker
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Gareth Walker - Saturday, 17 December 2016, 8:33 PM
 

I'm encountering similar installation issues for the Framework on a 10.12.1 OSX mac. They've been cropping up over a couple of days. The problems are:

Adapt-CLI

Using up-to-date Node (6.9.2) and Npm (4.0.5) managed with NVM. I try to install Adapt-CLI (with and without SUDO). Installation repeatedly fails, saying:

- Failed at the nodegit@0.16.0 install script 'node lifecycleScripts/preinstall && node lifecycleScripts/install

- Tell the author that this fails on your system: npmERR! node lifecycleScripts/preinstall && node lifecycleScripts/install

Manual installation

I clone the framework and do NPM install. No failing errors reported but when I run 'adapt install' the message says 'adapt: command not found'. As a result, I can't download the plug-ins. (The other day adapt install did work, but then it couldn't find compatible plugins.)

I've previously installed and run Adapt without issues on my system.

UPDATE: I've added a npm-debug.log

 

Picture of Gareth Walker
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Gareth Walker - Saturday, 17 December 2016, 10:25 PM
 

I've now got the adapt-cli working. What I did was:

a.) In terminal ran: $sudo xcode-select --install.

b.) In app store updated to Xcode 8.2. 

One, the other or the combination of these seems to have resolved the problem for me.

So if anyone else is running into similar problems on a Mac, I'd recommend making sure xcode is up-to-date. 

Picture of aaron quinn
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by aaron quinn - Sunday, 18 December 2016, 8:09 PM
 

thanks for this...

running [sudo xcode-select --install] allowed me to get past installing adapt-cli

 

//--

 

but now i have a new issue:

[sudo node install] stalled on me

so i updated npm: [sudo npm update -g npm]

then in a separate terminal window, i changed directories into mongodb/bin and i ran [./mongod]

i could see the mongdb terminal window change after running [sudo node install] a second time, but now i get errors i can't get past.

i should note that the first time it stalled, i had gotten to the point where the tenant name was being set (master and Master), but the second time when i got the error i did not get to the tenant name.

please help. thanks.

 

THE ERROR:

Completed installing NodeJS modules.

Now set configuration items. Just press ENTER to accept the default value (in brackets).
> Server port (5000)
> Server name (localhost)
> Database host (localhost)
> Master database name (adapt-tenant-master)
> Database server port (27017)
> Data directory path (data)
> Session secret (your-session-secret)
> Will ffmpeg be used? y/N (N) Y
> Which SMTP service (if any) will be used? (see https://github.com/andris9/nodemailer-wellknown#supported-services for a list of supported services.) (none)
> SMTP username
> SMTP password
> Sender email address

Checking configuration, please wait a moment ...
(node:7070) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
events.js:160
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::5000
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1259:14)
at listen (net.js:1295:10)
at Server.listen (net.js:1391:5)
at /Users/appFlasher/Documents/adapt_authoring/lib/application.js:486:38
at /Users/appFlasher/Documents/adapt_authoring/lib/application.js:355:12
at /Users/appFlasher/Documents/adapt_authoring/lib/database.js:462:14
at /Users/appFlasher/Documents/adapt_authoring/lib/database.js:386:14
at /Users/appFlasher/Documents/adapt_authoring/node_modules/async/lib/async.js:131:25
at /Users/appFlasher/Documents/adapt_authoring/lib/contentmanager.js:1602:9
at /Users/appFlasher/Documents/adapt_authoring/node_modules/async/lib/async.js:131:25
at /Users/appFlasher/Documents/adapt_authoring/plugins/content/bower/index.js:124:14
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)

 

AND THEN WHAT THE MONDODB WINDOW HAD IN IT:

2016-12-18T11:41:58.801-0800 I NETWORK [thread1] connection accepted from 127.0.0.1:50881 #1 (1 connection now open)
2016-12-18T11:41:58.802-0800 I NETWORK [thread1] connection accepted from 127.0.0.1:50882 #2 (2 connections now open)
2016-12-18T11:41:58.837-0800 I NETWORK [thread1] connection accepted from 127.0.0.1:50883 #3 (3 connections now open)
2016-12-18T11:41:58.837-0800 I NETWORK [thread1] connection accepted from 127.0.0.1:50884 #4 (4 connections now open)
2016-12-18T11:41:58.838-0800 I NETWORK [thread1] connection accepted from 127.0.0.1:50885 #5 (5 connections now open)
2016-12-18T11:41:59.991-0800 I INDEX [conn3] build index on: adapt-tenant-master.roles properties: { v: 2, unique: true, key: { name: 1 }, name: "name_1", ns: "adapt-tenant-master.roles", background: true }
2016-12-18T11:41:59.992-0800 I INDEX [conn3] build index done. scanned 0 total records. 0 secs
2016-12-18T11:41:59.992-0800 I COMMAND [conn4] command adapt-tenant-master.users command: listIndexes { listIndexes: "users", cursor: {} } numYields:0 reslen:105 locks:{ Global: { acquireCount: { r: 2 } }, Database: { acquireCount: { r: 1 }, acquireWaitCount: { r: 1 }, timeAcquiringMicros: { r: 1080226 } }, Collection: { acquireCount: { r: 1 } } } protocol:op_query 1080ms
2016-12-18T11:41:59.992-0800 I COMMAND [conn5] command adapt-tenant-master.sessions command: listIndexes { listIndexes: "sessions", cursor: {} } numYields:0 reslen:105 locks:{ Global: { acquireCount: { r: 2 } }, Database: { acquireCount: { r: 1 }, acquireWaitCount: { r: 1 }, timeAcquiringMicros: { r: 1017328 } }, Collection: { acquireCount: { r: 1 } } } protocol:op_query 1017ms
2016-12-18T11:41:59.992-0800 I COMMAND [conn3] command adapt-tenant-master.$cmd command: createIndexes { createIndexes: "roles", indexes: [ { name: "name_1", key: { name: 1 }, unique: true, background: true } ], writeConcern: { w: 1 } } numYields:0 reslen:113 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { w: 1, W: 2 } }, Collection: { acquireCount: { w: 1 } } } protocol:op_query 1097ms
2016-12-18T11:42:01.277-0800 I - [conn5] end connection 127.0.0.1:50885 (5 connections now open)
2016-12-18T11:42:01.277-0800 I - [conn3] end connection 127.0.0.1:50883 (5 connections now open)
2016-12-18T11:42:01.277-0800 I - [conn4] end connection 127.0.0.1:50884 (5 connections now open)
2016-12-18T11:42:01.277-0800 I - [conn2] end connection 127.0.0.1:50882 (5 connections now open)
2016-12-18T11:42:01.277-0800 I - [conn1] end connection 127.0.0.1:50881 (5 connections now open)

Picture of aaron quinn
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by aaron quinn - Monday, 19 December 2016, 10:08 AM
 

i'm in!

OS X 10.12.2

originally, i had used node-v4.2.6

but i had adapt-cli installation issues

so i uninstalled node-v4.2.6 and installed node-v6.9.2, thinking that was the fix

it wasn't

then i did the installation of the xcode tools

adapt-cli installed ok, but now i couldn't run the install script (error with something in node-v6.9.2)

so i uninstalled node-v6.9.2, reinstalled node-v4.2.6

all that was left was to make sure i had mongodb running in a terminal window

 

Picture of Malcolm Murray
Re: Linux Install Authoring - Failed at the nodegit@0.16.0 install script
by Malcolm Murray - Wednesday, 22 February 2017, 6:29 PM
 

Gareth,

Thanks for this post. I had been trying with no success to do this on my Mac.
Installing the command line developer tools for Xcode fixed the problem :-)

 

Malcolm