Showing posts with label Tech. Show all posts
Showing posts with label Tech. Show all posts

Monday, January 25, 2016

Installing MEAN Stack

Installing MEAN with node js (outside root) in Mac OS x is seems be to little tricky at least for me, but i found this two amazing blogs where you might find interesting in installing it.

1. http://www.johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/
2. Install MEAN - http://learn.mean.io/#mean-stack-packages-angular-modules-and-dependencies

Really good to learn.

To install Node / NPM in OS X

Copy paste the command and there you go in 20min.
brew install node --without-npm mkdir "${HOME}/.npm-packages" echo NPM_PACKAGES="${HOME}/.npm-packages" >> ${HOME}/.bashrc echo prefix=${HOME}/.npm-packages >> ${HOME}/.npmrc curl -L https://www.npmjs.org/install.sh | sh echo NODE_PATH=\"\$NPM_PACKAGES/lib/node_modules:\$NODE_PATH\" >> ${HOME}/.bashrc echo PATH=\"\$NPM_PACKAGES/bin:\$PATH\" >> ${HOME}/.bashrc echo source "~/.bashrc" >> ${HOME}/.bash_profile source ~/.bashrc

What is MEAN - Right now all i know is Mongodb, Express, Angular and Node js.