The installation of the latest version of nodejs is different from the old version. There is no configure file in the nodejs folder. Here is how to install the latest version of nodejs on ubuntu.
wget https://nodejs.org/dist/v8.1.0/node-v8.1.0-linux-x64.tar.xz
tar -xvf node-v8.1.0-linux-x64.tar.xz
cd node-v8.1.0-linux-x64/bin
pwd
. /node -v
sudo ln /home/ubuntu/node-v8.1.0-linux-x64/bin/node /usr/local/bin/node
sudo ln /home/ubuntu/node-v8.1.0-linux-x64/bin/npm/usr/local/bin/npm
pwd
If there are already node and npm under the /usr/local/bin file, you can delete these two files and execute the link
sudo cp /usr/local/bin/node /usr/sbin/
Execute node -v in any directory to check whether the current node version is the latest version
Recommended Posts