Picture of Curtis Anderson
adapt-cli installation
by Curtis Anderson - Monday, 3 August 2015, 2:53 PM
 

I'm trying to install the adapt-cli via npm, but it it keeps returning the following error:

npm ERR! git fetch -a origin (git://github.com/SpongeUK/download.git) fatal: unable to connect to github.com:
npm ERR! git fetch -a origin (git://github.com/SpongeUK/download.git) github.com[0: 192.30.252.131]: errno=No such file
or directory
npm ERR! Error: Command failed: fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.131]: errno=No such file or directory
npm ERR!
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:648:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:756:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "-g" "adapt-cli"
npm ERR! cwd C:\Users\curtisa\Documents\GitHub\adapt-dev-framework
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code 128
npm ERR! not ok code 0
C:\Users\curtisa\Documents\GitHub\adapt-dev-framework [master]> npm install adapt-cli
npm ERR! git fetch -a origin (git://github.com/SpongeUK/download.git) fatal: unable to connect to github.com:
npm ERR! git fetch -a origin (git://github.com/SpongeUK/download.git) github.com[0: 192.30.252.128]: errno=No such file
or directory
npm ERR! Error: Command failed: fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.128]: errno=No such file or directory
npm ERR!
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:648:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:756:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "adapt-cli"
npm ERR! cwd C:\Users\curtisa\Documents\GitHub\adapt-dev-framework
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code 128
npm ERR! not ok code 0

I'm a bit confused as this is the third instance of the installing the framework that I have performed and I haven't had this issue present itself before. When installing the grunt-cli via npm the installation works fine, it's only when I try to install the adapt-cli.

I'm using a posh-git powershell for the install.

Any ideas?

Thanks in advance!

 

Curtis

Picture of Matt Leathes
Re: adapt-cli installation
by Matt Leathes - Monday, 3 August 2015, 5:53 PM
 

What's the command you're running to kick off all the above?

Someone else is having what could be the same problem: https://community.adaptlearning.org/mod/forum/discuss.php?d=843

We have just released v2 of the framework, including the CLI. Might be worth trying again tomorrow?

Picture of Chris Jones
Re: adapt-cli installation
by Chris Jones - Tuesday, 4 August 2015, 8:42 AM
 

Hi Curtis,

Can I add some observations?

First if you have had adapt installed previously then you should run a global update

   npm update adapt-cli -g

This will perform a global install, not just into the current directory.

In addition to what Matt said, the log says "unable to connect to github.com" so it might be worth checking your firewall.

Cheers,

Chris

Picture of Curtis Anderson
Re: adapt-cli installation
by Curtis Anderson - Tuesday, 4 August 2015, 11:25 AM
 

Thanks Chris and Matt,

You were correct in your suggestion that it was the firewall. Our IT department has now sorted it out for us I've been able to install it successfully. It was just a bit confusing as I'd gone through the process no longer than a week ago without issue and I couldn't imagine why a firewall restriction would now be in place.

All resolved now though!

Thank you both for your prompt replies!

Curtis