I'm new to Ubuntu 16.04 (xenial) , while I do everything at the level of a monkey: I found the instruction-made. Need the latest version of node.js (6.1.0) . apt-get put 4.4.

No way: ppa, ppa by hand, install the precompiled version from the site, downloaded in the usual way - can not be implemented. I rummaged through every imaginable guide, only confused. When any, working for other people, options, errors occur.

When trying to install the latest version downloaded from nodejs.org, it does not always find ./configure .

When using ppa to install or simply upgrade, it gives:

 E: Some index files failed to download. They have been ignored, or old ones used instead. 

Can anyone give a sensible way and help deal with errors if they arise. I will provide screenshots and other necessary information.

  • And tried to collect pens from source? node.js is great even on exotic platforms like armv6 - Dmitriy Simushev
  • @DmitriySimushev "compile from source" - this is, apparently (I'm new), an option like "wget ​​-N nodejs.org/dist/node-latest.tar.gz tar xzvf node-latest.tar.gz && cd node-v * ./configure "In this version, every time I don’t find the ./configure file, I don’t understand how. - Rumata Estorsky
  • ls -l | grep "node" ls -l | grep "node" that gives? - Dmitriy Simushev
  • @DmitriySimushev Nothing - Rumata Estorsky
  • Um ... do you unpack the archive? And is it really unpacked? Files appear? - Dmitriy Simushev

2 answers 2

In addition to apt-get install, there are more options:

Try this

Using NVM:

 sudo apt-get update sudo apt-get install build-essential libssl-dev curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh nano install_nvm.sh bash install_nvm.sh source ~/.profile nvm ls-remote nvm install 6.1.0 nvm use 6.1.0 node -v 

// should bring 6.1.0 to the terminal.

Or again through the PPA, but with the command in the following sequence: Using the PPA:

 cd ~ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh nano nodesource_setup.sh sudo bash node_setup.sh sudo apt-get install nodejs sudo apt-get install build-essential 

Here is a good tutorial on your problem: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04

    Thanks to all.

    As a result, I solved the problem (on the advice of a friend) as follows:

    In file

    /etc/apt/sources.list.d/

     sudo rm jerome* 

    Removed this package because It was the old package that prevented the installation of a new one, knocking out an error.

    After this way through

     curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodej 

    earned well.