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.
wget https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x64.tar.gz sudo tar --strip-components 1 -xzvf node-v* -C /usr/local
[[email protected] xqa.com]# node --version v0.12.5
curl -L https://npmjs.org/install.sh | sh
npm install -g mean-cli
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.