przemyslawpluta/mongo-edu

npm ERR! network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND

Closed this issue · 23 comments

yhw82 commented

MongoDB Developer course is just started.

I'm trying to download videos using mongo-edu using the following command:

mongo-edu -d /videos/
MongoDB username:
MongoDB passowrd:
searching.......[100%]

Program exits after the above line.

I did use this tool last year to download other videos in MongoDB but it doesn't work now for the new course. Are the videos available in mongo-edu?

add --cw

yhw82 commented

mongo-edu -d /videos/ --cw command does the same thing...no difference.
It exits the mongo-edu after searching 100%. Any idea how I can resolve this?

Try to reinstall python.

@yhw82 upgrade to the latest version mongo-edu 0.2.16 and let me know ...

yhw82 commented

How do I upgrade mongo-edu?

Should I run the following commands?
npm uninstall mongo-edu -g
npm install mongo-edu -g

yhw82 commented

Reinstalled the mongo-edu using the above commands but the issue is no different. What else I can try?

@yhw82 can you post the full snapshot of the console output.

OK. @yhw82 try latest version mongo-edu 0.2.17 and give me an update.

yhw82 commented

image

nodeJ version is v0.10.29
npm version is v1.4.14
Python version (Canopy distribution) is 2.7.6

How do I check the mongo-edu version? Would reinstallation give me v0.2.17?

npm uninstall mongo-edu -g then npm install mongo-edu -g

yhw82 commented

I've uninstalled and then reinstalled the mongo-edu...but it seems it's installing v0.1.24....don't know why... the issue still occurs after reinstallation

image

Try npm cache clean then npm install mongo-edu@0.2.18 -g

yhw82 commented

I could not install the version using the command you've mentioned.

image

It looks like you have issues with npm itself. What do you get when you run npm view mongo-edu versions?

yhw82 commented

When I ran the command, it shows the version as 0.1.24.
How can I successfully remove npm and install the correct mongo-edu version?

Just uninstall nodejs ... then install latest 0.10.x or 0.12.x nodejs from the website.

yhw82 commented

I installed the latest node.js and retried the mongo-edu installation and I'm getting the following error.
I have no proxy enabled in any of my web browers but I am having socket connection error:

image

Looks like you have network / npm issues. See if this helps npm/npm#8639

yhw82 commented

I've managed to connect to mongo-edu after removing the proxy.....but getting other errors as such:
any idea what the problem is? I'm losing the connection after downloading a video clip..
image

What is the output of:

python %HOMEPATH%\AppData\Roaming\npm\node_modules\mongo-edu\node_modules\youtube-dl\bin\youtube-dl YQTqdLe3W4M --verbose

@yhw82 shall I assume you got it sorted?

Closing for now ... will reopen later if required.