Hinrich Hinrich - 4 months ago 21
Node.js Question

Versions of npm packages

I installed Express and the package.json shows me

"express": "^4.14.0"
. But when i do
npm express -v
via console inside my project, it gives me 3.8.8. Can somebody explain, where the different versions come from and how I can fix this?

Answer

inside your project run npm install and then run npm list express to see the version inside your project.

run npm -g list express to check if it may have been installed globally.