Hinrich Hinrich - 1 year ago 141
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download