Installing modules with npm

You can install additional Javascript modules for your Node.js applications as follows:

1

Log in to your shell user account via SSH.

2

Switch to your application directory and install the module by running the commands in the example below, replacing myapp with the name of your Node.js application and modulename with the name of the module that you want to install:

cd ~/apps/myapp
npm install modulename