Express version output

express, node.js

Solution

Using @FreeTymeKiyan's answer as well as this answer: https://stackoverflow.com/a/24750985/1696153

I found that I can output the version like so:

console.log("**Express Version: ", require('express/package').version);

Problem

I upgraded express.js from 3.2.5 to 3.14.0, and used to output the version like this: ``` var express = require('express'); console.log("**Express Version: ", express.version); ``` and would give me ``` **Express Version: 3.2.5 ``` after I updated to 3.14.0, I get: ``` **Express Version: undefined ``` any help? Thanks!

Original source