Picture of Donnie Damon
Installing Prerequisites
by Donnie Damon - Monday, 13 March 2017, 7:50 PM
 

After installing the majority of the prerequisites requires to set up the Adapt Authoring server the only hang up we've encountered is our inability to install adapt-cli. We've installed git, node, npm, nvm, grunt, mondodb, and ffmpeg and verifed their version number on our Red Hat server but the step to install adapt-cli presents us with this error:

npmERR!code ELIFECYCLE

npmERR!errno 1

npmERR! nodegit@0.16.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`

npmERR! Exit status 1

npmERR! 

npmERR! Failed at the nodegit@0.16.0 install script 'node lifecycleScripts/preinstall && node lifecycleScripts/install'.

npmERR! Make sure you have the latest version of node.js and npm installed.

npmERR! If you do, this is most likely a problem with the nodegit package,

npmERR! not with npm itself.

npmERR! Tell the author that this fails on your system:

npmERR!     node lifecycleScripts/preinstall && node lifecycleScripts/install

npmERR! You can get information on how to open an issue for this project with:

npmERR!     npm bugs nodegit

npmERR! Or if that isn't available, you can get their info via:

npmERR!     npm owner ls nodegit

npmERR! There is likely additional logging output above.

 

npmERR! A complete log of this run can be found in:

npmERR!     /root/.npm/_logs/2017-03-13T19_32_23_454Z-debug.log

 

If there is anyone experiencing this, any input is graciously appreciated as we would like to get this resolved as soon as possible

Picture of Matt Leathes
Re: Installing Prerequisites
by Matt Leathes - Tuesday, 14 March 2017, 12:58 PM
 

Hi Donnie

Looking at the debug log, I can see it appears to be having problems with installing nodegit because of an 'Unknown `--is-lightweight' option' error with libssh2/missing

There's a few references to that error here - could be worth trying some of those solutions?

Elisabete
Re: Installing Prerequisites
by Elisabete Baker - Sunday, 28 May 2017, 12:19 AM
 

If anyone is still having this issue, it turns out to be Node version related. 

Updating to the latest stable Node version before installing Adapt, results in the "ELIFECYCLE" and "nodegit" error messages listed in the original post.

To resolve this issue... 

Clear your cache and downgrade to Node version 6.9.0:

> sudo npm cache clean -f

> sudo npm install -g n

> sudo n 6.9.0

Check your version of Node: 

> node --version

Install Adapt and Grunt (using sudo): 

> sudo npm install adapt-cli -g

> sudo npm install grunt-cli -g

This should do it! ; )

Elisabete
Re: Installing Prerequisites
by Elisabete Baker - Monday, 29 May 2017, 12:01 AM
 

While running the commands in my previous post had worked on my Mac OS (Sierra), I received the same error message while attempting to install Adapt-CLI on Ubuntu 16.04.

Here's what finally worked for me. Using sudo, I installed...

General prerequisites*:

> sudo apt-get install nodejs  (version 6.9.0 - see downgrade info in previous post)

> sudo apt install nodejs-legacy

> sudo apt-get install npm

> sudo apt-get install git

Secure Sockets Layer toolkit*:

> sudo apt install libssl-dev

Adapt-CLI and Grunt:

> sudo npm install adapt-cli -g

> sudo npm install grunt-cli -g

* Shout out to @codecholeric and @n8behavior on github. Installing libssl-dev fixed everything and allowed me to  successfully install Adapt and Grunt without further error messages!


Picture of Darwin Me
Re: Installing Prerequisites
by Darwin Me - Wednesday, 21 February 2018, 5:05 AM
 

Have anyone installed the Adapt CLI lately? It didn't for me.  I got the Node.js 6.9.0 and npm 3.10.8 installed and ran the command below  and got the error below, i also tried to install the latest npm version 5.6.0 but still no lucks.

sudo npm install adapt-cli -g     

 

npm WARN deprecated bower@1.8.2: ...psst! Your project can stop working at any m oment because its dependencies can change. Prevent this by migrating to Yarn: ht tps://bower.io/blog/2017/how-to-migrate-away-from-bower/
/usr/bin/adapt -> /usr/lib/node_modules/adapt-cli/bin/adapt

> nodegit@0.20.3 install /usr/lib/node_modules/adapt-cli/node_modules/nodegit
> node lifecycleScripts/preinstall && node lifecycleScripts/install

[nodegit] Running pre-install script
[nodegit] Configuring libssh2.
{ Error: Command failed: /usr/lib/node_modules/adapt-cli/node_modules/nodegit/ve ndor/libssh2/configure --with-libssl-prefix=/usr/lib/node_modules/adapt-cli/node _modules/nodegit/vendor/openssl/openssl
/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing: Unk nown `--is-lightweight' option
Try `/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendo r/libssh2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
killed: false,
code: 1,
signal: null,
cmd: '/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/conf igure --with-libssl-prefix=/usr/lib/node_modules/adapt-cli/node_modules/nodegit/ vendor/openssl/openssl' }
/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing: Unk nown `--is-lightweight' option
Try `/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendo r/libssh2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

[nodegit] ERROR - Could not finish preinstall
{ Error: Command failed: /usr/lib/node_modules/adapt-cli/node_modules/nodegit/ve ndor/libssh2/configure --with-libssl-prefix=/usr/lib/node_modules/adapt-cli/node _modules/nodegit/vendor/openssl/openssl
/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing: Unk nown `--is-lightweight' option
Try `/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendo r/libssh2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
killed: false,
code: 1,
signal: null,
cmd: '/usr/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/conf igure --with-libssl-prefix=/usr/lib/node_modules/adapt-cli/node_modules/nodegit/ vendor/openssl/openssl' }
[ ...] / install: info lifecycle nodegit@0.20.3~install: Failed to exec install script
[ ...] / install: info lifecycle nodegit@0.20.3~install: Failed to exec install script

/usr/lib
└── (empty)

npm ERR! Linux 3.10.0-693.17.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "install" "adapt-cli" "-g"
npm ERR! node v6.9.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! nodegit@0.20.3 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodegit@0.20.3 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! /root/npm-debug.log
npm ERR! code 1