[SOLVED] Bench update nodejs error

vhrs@vhrs-HP-Z210-Workstation:~/frappe-bench$ nodejs --version
v6.3.1
vhrs@vhrs-HP-Z210-Workstation:~/frappe-bench$ bench clear-cache && bench update

        Please update node version to 5.x before running "bench update".
        Installation instructions for CentOS and Ubuntu can be found on the following link,
        "https://www.metachris.com/2015/10/how-to-install-nodejs-5-on-centos-and-ubuntu/"
        
v

Just follow the instructions…

Installing NodeJS 5.x on CentOS 7

The easiest way is to install the latest NodeJS 5.x from the official RPM repository with the standard package manager, which has the advatage of automatically being able to get updates to NodeJS:

# Install the Repository
rpm -Uvh https://rpm.nodesource.com/pub_5.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm
# Install NodeJS
yum install nodejs
This is basically the short version of running the official CentOS/Fedora/RHEL install script: https://rpm.nodesource.com/setup_5.x

Installing NodeJS 5.x on Ubuntu and Debian
This is the official way to install NodeJS 5.x on Ubuntu, Debian, Linux Mint, Linux Mint Debian Edition (LMDE) and elementaryOS :

Installing NodeJS 5.x on Ubuntu / Debian

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
1 Like