Raspberry Pi Installation Nodejs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.