After installation, the default installation of node is still very old version, uninstall method:
sudo apt-get Remove node
1. Download Nodejs Source code:
2. Download the gz zip file in 1, unzip the file, and change the filename to the version you downloaded:
Tar-xzf Node-v0. 11.7. tar.gz
3. Unzip the package to get a directory, enter the directory:
CD Node-v0. 11.7
4. Locate the directory in the Configure file, execute the change file:
sudo./configure
5. Compile the source code:
sudo make
6. Install the compiled file:
sudo make install
7. If there is no error, test whether the installation is successful, if you enter the version information, no hint can not be found, indicating that the installation was successful:
Node-V
8. After the installation, the source file is not required, can be deleted, the path installed to the default is /usr/local/bin .
Raspberry Pi Installation Nodejs