Ubuntu install node. js + Express + MongoDB

Source: Internet
Author: User
Tags generator install mongodb install node

Reprinted from http://my.oschina.net/reg/blog/289536

Ctrl + Alt + T, open terminal, enter the following command to install:


sudo apt-get install Nodejs

After the installation completes, the terminal input Nodejs, can enter node command;

But the normal should be input node into command instead of Nodejs;

In Ubuntu, node belongs to other applications, but continue to enter the following command installation, you can use node to enter the command after completion.


sudo apt-get install nodejs-legacy
Nodejs after installation, continue to install NPM;


sudo apt-get install NPM
sudo npm Install-g Express
-G is performing a global installation
sudo npm install-g [email protected]
After @ is the version to install

Note: After 4.x, also need to install express-generator, otherwise express cannot use
sudo npm install-g express-generator

Start is NPM start
When you install the package with NPM, you sometimes report 304, and this time you need to clear the cache:


NPM Cache Clean
Next install the database, MongoDB

sudo apt-get install mongodb-clients
sudo apt-get install Mongodb-server
After installing MongoDB, run MONGO start service under Terminal!

Ubuntu install node. js + Express + MongoDB

Related Article

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.