Installing modules with npm
You can install additional Javascript modules for your Node.js applications as follows:
- 1
- 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 andmodulename
with the name of the module that you want to install:cd ~/apps/myapp npm install modulename