NodeJS installation problem (via Curl)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NodeJS installation problem (via Curl)

Dmitriy Ermola
I have running Vagrant machine "ubuntu/trusty64", on host machine Windows 10.
I need to install NodeJS 6 version.
If i trying execute command
"cd ~"
"curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -" 
or 
"curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh"
on Vagrant, it hangs for several minutes, then just closes.
Run commands as "sudo" has no effect.
Error messages do not appear.
At the same time, i successfully uploaded jQuery using the same command
"curl -sL https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/core.js -o jquery.js"
On local machine command  "curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh" works great.

What am i doing wrong?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1485bcde-82f6-4b4c-ba0d-f1ed4bdacd5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS installation problem (via Curl)

Dmitriy Ermola
I found the cause of the problem

File "/etc/resolv.conf" on Vagrant contains this "nameserver 10.0.2.3".
I just added "nameserver 8.8.8.8" to the first line and it worked!

понедельник, 27 февраля 2017 г., 15:28:38 UTC+2 пользователь Dmitriy Ermola написал:
I have running Vagrant machine "ubuntu/trusty64", on host machine Windows 10.
I need to install NodeJS 6 version.
If i trying execute command
"cd ~"
"curl -sL <a href="https://deb.nodesource.com/setup_6.x" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeb.nodesource.com%2Fsetup_6.x\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPQI3CMPMdf6IMYvLKLxofzthO3w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeb.nodesource.com%2Fsetup_6.x\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPQI3CMPMdf6IMYvLKLxofzthO3w&#39;;return true;">https://deb.nodesource.com/setup_6.x | sudo -E bash -" 
or 
"curl -sL <a href="https://deb.nodesource.com/setup_6.x" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeb.nodesource.com%2Fsetup_6.x\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPQI3CMPMdf6IMYvLKLxofzthO3w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeb.nodesource.com%2Fsetup_6.x\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPQI3CMPMdf6IMYvLKLxofzthO3w&#39;;return true;">https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh"
on Vagrant, it hangs for several minutes, then just closes.
Run commands as "sudo" has no effect.
Error messages do not appear.
At the same time, i successfully uploaded jQuery using the same command
"curl -sL <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/core.js" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fjquery%2F3.1.1%2Fcore.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGbaRyV7AKa0aJQX1S9WPSM4CcHWw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Fjquery%2F3.1.1%2Fcore.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGbaRyV7AKa0aJQX1S9WPSM4CcHWw&#39;;return true;">https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/core.js -o jquery.js"
On local machine command  "curl -sL <a href="https://deb.nodesource.com/setup_6.x" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeb.nodesource.com%2Fsetup_6.x\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPQI3CMPMdf6IMYvLKLxofzthO3w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdeb.nodesource.com%2Fsetup_6.x\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPQI3CMPMdf6IMYvLKLxofzthO3w&#39;;return true;">https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh" works great.

What am i doing wrong?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e7465bb2-c168-49ff-b9ff-daaf9bb1ce35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: NodeJS installation problem (via Curl)

Joaquin Menchaca
Would suggest using DNS from your regular network, and if you don't have one, make one using root hints.  What I do at my place, that way don't get ISP filtered content.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/e9ae8070-9f90-44fe-9c5d-4b4894a83250%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.