Skip to content

How to Install Mean.io On Ubuntu, Debian & LinuxMint

Category
Linux
Covers
Debian, Linux Mint, Node.js
On this page

MEAN is a full-stack JavaScript-based framework, which accelerates web application development much faster than other frameworks. This tutorial will help you to install Mean stack on Ubuntu, Debian and LinuxMint systems.

MEAN.IO have following requirements, to be pre-installed on the system.

  • Node.js
  • MongoDB
  • Git client

Prerequsities

First of all, install Nodejs and NPM on your system by running the following commands on your system.

curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install nodejs

Now execute the following commands to install MongoDB on your system. Visit here for detailed installation instructions about latest mongodb.

sudo apt-get install mongodb mongodb-server

Now install some more required packages for working with Mean.io.

sudo apt-get install git
sudo npm install gulp

Setup Mean.io Stack

Let’s clone the mean.io source code from its official git repository and install the required node modules.

git clone --depth 1 https://github.com/linnovate/mean.git
cd mean && npm install

Start Application

Now use the following command to start the node development server. This option is not recommended for production use.

npm start

Start Mean stack Ubuntu

Then, open a browser and go to:

 http://localhost:3000

Mean.io stack Ubuntu

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

2 Comments

  1. (function (exports, require, module, __filename, __dirname) { import mongoose from ‘mongoose’;
    ^^^^^^

    SyntaxError: Unexpected token import
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:588:28)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:201:16)
    at bootstrap_node.js:626:3

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top