How to get Browserify
Use the following to download browserify .
npm install -g browserify
Automate Browserify Dependency
You can also create a package.json file by the following command.
npm init
This will create a basic package.json file. now run the command
npm install --save browserify
--save option will download the file and save its reference in package.json . Now on other machine you just need to run the command npm install and it will download the browserify plugin and save it on your machine.
This will download the browserify in node_modules folder. Now we can use browserify to download our node dependencies. For this we will first create a .js file named require.js , you can name it anything you want.
Let's see a sample file.
angular = require ( 'angular' );
ngSanitize = require ( 'angular-sanitize' );
Now, to make browserify work you should have all these modules installed...