Picture of Philip Jones
Cannot Install adapt-cli
by Philip Jones - Thursday, 9 November 2017, 12:10 AM
 

I have tried with various versions of Node so I don't think that is the problem. Here is the result when I run the command:

 

wlan4-178:Desktop Training$ npm install -g adapt-cli

npmWARNdeprecated bower@1.8.2: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/

/Users/Training/.nvm/versions/node/v8.9.1/bin/adapt -> /Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/bin/adapt

 

> nodegit@0.20.3 install /Users/Training/.nvm/versions/node/v8.9.1/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: /Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/openssl/openssl

/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option

Try `/Users/Training/.nvm/versions/node/v8.9.1/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: No crypto library found!

Try --with-libssl-prefix=PATH

 or --with-libgcrypt-prefix=PATH

 or --with-wincng on Windows

 

    at ChildProcess.exithandler (child_process.js:275:12)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Socket.stream.socket.on (internal/child_process.js:346:11)

    at emitOne (events.js:116:13)

    at Socket.emit (events.js:211:7)

    at Pipe._handle.close [as _onclose] (net.js:554:12)

  killed: false,

  code: 1,

  signal: null,

  cmd: '/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/openssl/openssl' }

/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option

Try `/Users/Training/.nvm/versions/node/v8.9.1/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: No crypto library found!

Try --with-libssl-prefix=PATH

 or --with-libgcrypt-prefix=PATH

 or --with-wincng on Windows

 

[nodegit] ERROR - Could not finish preinstall

{ Error: Command failed: /Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/openssl/openssl

/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/missing: Unknown `--is-lightweight' option

Try `/Users/Training/.nvm/versions/node/v8.9.1/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: No crypto library found!

Try --with-libssl-prefix=PATH

 or --with-libgcrypt-prefix=PATH

 or --with-wincng on Windows

 

    at ChildProcess.exithandler (child_process.js:275:12)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Socket.stream.socket.on (internal/child_process.js:346:11)

    at emitOne (events.js:116:13)

    at Socket.emit (events.js:211:7)

    at Pipe._handle.close [as _onclose] (net.js:554:12)

  killed: false,

  code: 1,

  signal: null,

  cmd: '/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/Users/Training/.nvm/versions/node/v8.9.1/lib/node_modules/adapt-cli/node_modules/nodegit/vendor/openssl/openssl' }

npmERR!code ELIFECYCLE

npmERR!errno 1

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

npmERR! Exit status 1

npmERR! 

npmERR! Failed at the nodegit@0.20.3 install script.

npmERR! This is probably not a problem with npm. There is likely additional logging output above.

 

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

npmERR!     /Users/Training/.npm/_logs/2017-11-08T23_57_17_843Z-debug.log

Picture of Matt Leathes
Re: Cannot Install adapt-cli
by Matt Leathes - Thursday, 9 November 2017, 11:47 AM
 

Hi Philip

You don't mention what operating system you're using. It's clearly not Windows but I can't tell if it's Linux or macOS.

Node 8.9.1 certainly works OK for installing adapt-cli on Windows but I've never tried it on other platforms.

Picture of John Niezen
Re: Cannot Install adapt-cli
by John Niezen - Thursday, 9 November 2017, 12:07 PM
 

Hi Philip,

try the steps from this posting: https://community.adaptlearning.org/mod/forum/discuss.php?d=1769&parent=8063

If I read your log correct, at the end it complains about the lifecycle scripts. I had a similar experience, and for me the legacy usage solved my problem (be it on Ubuntu)

John

Picture of Philip Jones
Re: Cannot Install adapt-cli
by Philip Jones - Thursday, 9 November 2017, 6:56 PM
 

Success! I have the framework installed at last. Thanks for directing me to this post.