How do I verify that Express is installed correctly?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I verify that Express is installed correctly?
Asked by:
52 Viewed 52 Answers

Answer (52)

Best Answer
(344)
After installation, you can verify that Express is installed by running `npm list express` or `yarn list express`. This command should display the version number of the Express module. Alternatively, you can try importing Express in your code: `const express = require('express');` If this works without errors, Express is correctly installed.