install sublime:
https://www.sublimetext.com/3
launch command: subl
install npm:
sudo apt-get install npm
INSTALL MEAN.IO
RE: http://learn.mean.io/#mean-stack-prerequisite-technologies-linux
1. install node.js
########################
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get update
sudo apt-get install nodejs
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
2. INSTALL GIT
########################
sudo apt-get install git
3. Mean currently uses gulp as a build tool and bower to manage frontend packages.
########################
sudo npm install -g gulp
// and bower
sudo npm install -g bower
4. INSTALL MEAN.IO
########################
sudo npm install -g mean-cli
mean init myApp
cd myApp && npm install
// npm install takes a while (even on fast wifi)
5. Invoke node with a task manager [USE THIS ONE]
########################
gulp
5. Alternatively, when not using gulp [DONT USE THIS OME]
########################
node server
6.Then, open a browser and go to:
########################
http://localhost:3000
-------------------------- N O T E S
after you send the mean init myApp command:
########################
All Done! - Now lets install the dependencies...
Install node package dependencies:
$ cd myApp && npm install
Bower install should be triggered for client side dependencies.
If it did not run invoke it manually...
$ cd myApp && bower install
Run the app by running:
$ cd myApp and then run..
$ gulp
Running on a different port
$ export PORT=3001 && gulp
Update NPM, Bower or Gulp
Sometimes you may find there is a weird error during install like npm’s Error: ENOENT. Usually updating those tools to the latest version solves the issue.
Updating NPM:
$ npm update -g npm
Updating Gulp:
$ npm update -g gulp
Updating Bower:
$ npm update -g bower
Failed at the [email protected] install script 'node install.js
try as root
sudo -s
apt-get -qq update && apt-get -qq -y install bzip2
// source: https://github.com/Medium/phantomjs/issues/659
exit
to update mongodb:
http://stackoverflow.com/questions/16073603/how-do-i-update-each-dependency-in-package-json-to-the-latest-version
sudo npm i -g npm-check-updates
sudo npm-check-updates -u
sudo npm install