Installing NodeJS on Ubuntu Trusty

I need to install version 12 of NodeJS on Ubuntu but looks like my company is for some reason blocking the path to the files. When I run the curl -L | sudo bash -command I get a curl: (7) Failed to connect to deb.nodesource.com port 443: Connection refused error message.

How can I install node manually on Ubuntu Trusty? I assume the option I have is to somehow get the setup files on the server, add it to the repository and then run the sudo apt-get install nodejs command ,but I'm really not for certain.

FYI: They've also blocked the git protocol.

1 Answer

HTTPS really shouldn't be blocked - it may be another network issue (with DNS or certificates etc). Anyway, you could try different commands:

  • Use HTTP instead:

    curl -L | sudo bash -
  • Use wget (or another downloader) instead, and execute it:

    wget
    sudo bash ./setup_0.12

All curl -L | sudo bash - should do is download the script and run it as root, so it can be done in other ways. However it may be a good idea to talk to the people who run the setup if HTTPS is blocked/scanned - as generally doing that makes things insecure.

You can install nodejs from the Ubuntu repos (with apt-get etc), but it may be a older version (see here)

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like