Installing MEAN Stack on Amazon Linux

So recently I purchased a new domain for a “side project” I am working on part time. And deployed it to a on spot t2.large instance in EC2. I decided to do this project using the MEAN stack so I’m actually staying relevant in the industry I love the most. Below we will go through installing the MEAN stack which is really not hard at all.

Install Node

sudo tar --strip-components 1 -xzvf node-v* -C /usr/local
[[email protected]]# node --version

Install NPM

curl -L | sh

Install mean-cli

npm install -g mean-cli

Install mongodb

sudo yum install -y mongodb-org-server mongodb-org-shell mongodb-org-tools

Again, it’s a pretty easy setup, so one would hope, but then once creating an app with:

mean init SuperCoolApp

All hell breaks loose and of course googling for it doesn’t show much so hopefully this post will help with resolving any issues getting your basic MEAN app up and running.

So you have your new MEAN app but guess what when you try to ‘node server’ all you get is one require module error after another. So here is the easy way to resolve all those issues:

npm install -d

This will install all of the dependencies for the bare bones init of a app.

Write a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.