-
Book Overview & Buying
-
Table Of Contents
HTML5 Data and Services Cookbook
By :
The node package manager npm comes with the Node.js installer. npm is used for the command line; to use it, we will need to run a terminal program (a command prompt).
On Windows, we can use the basic cmd.exe, or alternatively, we can download and install Console from http://sourceforge.net/projects/console/.
On Mac OS X, Terminal.app can be used to run commands.
On Linux, use your favorite terminal. The default on Ubuntu Linux is the gnome terminal.
Open the terminal and type: npm. This command runs npm without any parameters. As a result, npm will print a general usage overview listing the available subcommands.
Let's create an empty directory for our project named test, navigate to that directory, and install the underscore library there, using npm. Run the following commands:
mkdir test cd test npm install underscore
The last command will tell npm to run the install subcommand with the argument underscore, which in turn will install the package underscore...
Change the font size
Change margin width
Change background colour