How to configure and install Node.js in Ubuntu development environment

  
                

Node.js is a commonly used script in Linux systems and has a wide range of applications in Linux browsers. Before installing Node.js under Linux, you need to install Node.js under Ubuntu development environment. Let's take a look together.

configuration and installation Node.js
Ubuntu development environment

1 installation nodejs

$ sudo apt-get install build-essential

$ sudo Apt-get install gcc

$ sudo apt-get install g++

$ sudo apt-get install make

$ wget ftp://pepstack.com/pub/tarball /node-v4.2.1.tar.gz

$ tar -zxf node-v4.2.1.tar.gz

$ cd node-v4.2.1

$. /configure

$ make -j 4

$ sudo make install

$ node --version

2 Install yaml, Jinja2, MySQLdb
< s $ sudo apt-get install python-pip

$ sudo apt-get install python-yaml

$ sudo pip install Jinja2

$ sudo apt-get install Python-dev

$ sudo apt-get install libmysqlclient-dev

$ wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz

$ tar -zxf MySQL-python-1.2.3.tar.gz

$ cd MySQL-python- 1.2.3

$ sudo python setup.py install

The above is how to configure Node.js in Ubuntu development environment. The method of installing Node.js under other Linux systems is similar. This article can be used as a reference.

Copyright © Windows knowledge All Rights Reserved