Languages

Express.js - how to check express version?

3 points
Asked by:
Geospatial-Palus
660

How can I check my version of express.js?

2 answers
5 points
Answered by:
Geospatial-Palus
660

You can use:

npm view express version

or:

npm info express version

Example output:

4.17.1

 

0 comments Add comment
3 points
Answered by:
Geospatial-Palus
660

In your project go to the package.json file and search for "dependencies:" -> "express:"

Example

package.json file:

{
  "name": "example",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.1",
    "mysql": "^2.18.1"
  }
}

You look for:

"dependencies": {
  "express": "^4.17.1"
}
0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join