lundi 20 avril 2015

Check package version at runtime in nodejs?

I have some of my entries in package.json defined as "*"

"dependencies": {
    "express": "4.*",
    "passport": "*",
    "body-parser": "*",
    "express-error-handler": "*"
},

I wan't to freeze those values to the current version. How can I know what version my packages are at run time? I don't mind checking one by one since I don't have many of them :)

BTW: I cannot do npm list --depth=0 because I cannot access the vm directly (PaaS restriction), just the logs.

Aucun commentaire:

Enregistrer un commentaire