Introduction
For developing a NodeJS application, there is already a framework exist in the form of a module. The module for that purpose is a module with the name of ‘express’. First of all, before using the module in the NodeJS application, just install the module. After installing the module, it is possible to use it in the NodeJS application.
Installing Express Module in NodeJS Application
The following is the step for installing Express Module in a local NodeJS application :
1. As usual, access the server or the machine where the running NodeJS application exist. Access it directly or remotely. Additionally, just access the article with the title of ‘How to Remote CentOS Virtual Server running in a VirtualBox with a NAT Network using SSH’ in this link to look at how to remote a server or a machine. It shows how to remote a virtual server for an example.
2. Next, access the command line interface exist in it.
3. Finally, execute the command for installing ‘express’ module. There are a lot of articles about installing module. First of all an article with the title of ‘How to Install a Package using npm tool’ in this link. Another one, it is an article with the title of ‘How to Install a Specific Package using npm via Command Line’ in this link. One more article is an article with the title of ‘How to Install Package using npm via Command Line’ exist in this link. The other one is in this link with the title of ‘How to Install Package Dependencies in Node.js Application using npm’. Finally, the last one is an article with the title of ‘How to Install a Specific Package using npm via Command Line’ in this link. Check all of it and many more article links about NodeJS in this link with the title of ‘NodeJS Article’.
Just execute the following command :
[admin@10 db]$ npm i express added 50 packages, and audited 51 packages in 5s found 0 vulnerabilities [admin@10 db]$
4. Finally, execute the following command to check whether the express module is available or not :
[admin@10 nodejs]$ npm list nodejs@ /home/admin/nodejs ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] [admin@10 nodejs]$
As it shows in the output above, there is a module with the name of ‘express’ from the previous installation above.