Install latest nodejs version in ubuntu 14.04

前端 未结 13 1222
北恋
北恋 2020-12-12 13:50

This is the way I installed nodejs in ubuntu 14.04 LTS:

sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get install nodejs

When I c

13条回答
  •  眼角桃花
    2020-12-12 14:09

    Here i am going to tell you how to install nodejs compile and install into your Linux Server.

    Step 1-:

    $ cd /opt/
    $ wget https://nodejs.org/dist/v6.2.1/node-v6.2.1.tar.gz
    

    Extract the tar.gz source code

    $ tar -xvf node-*.tar.gz
    

    Step 2-: Compile and install the nodejs.

    $ cd node-v6.2.1
    $ ./configure
    $ make
    $ sudo make install
    

    Note-: If you found error “make command not found”

    $ sudo apt-get update
    
    $ sudo apt-get upgrade
    
    $ sudo apt-get install build-essential
    
    $ gcc -v
    
    $ make -v
    

提交回复
热议问题