Is there a way to get the version set in package.json in a nodejs app? I would want something like this
var port = process.env.PORT || 3000
app.listen port
console.log "Express server listening on port %d in %s …
My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19.
My node version is:
node -v
v0.6.1-pre
NVM says this (after I install a version of node for the first time …
I just installed Node.js and npm (for additional modules).
How can I update Node.js and the modules which I'm using to the latest versions?
Can npm do it, or do I have to remove and reinstall Node.js …