I have a deployed version 0.6 of Node.js with a considerable number of packages installed for various projects.
Is there a straight-forward way to check all of the packages that were installed using NPM to see if they support Node.js v 0.8.x?
I can see that the package.json files should say what version of Node they are for though I’m guessing that many will not include this – so I’m really only interested in packages that say they are definately not compatible with Node v 0.8.x
e.g. They have something like this in package.json:
"engines": {
"node": "<0.8.0"
},
or
"engines": {
"node": "=0.6.*"
},
I just want a simple list of packages that are incompatible.
Try this in the base directory of your application:
Translation into normal style:
We then use
findto run this on everypackage.jsonwe can find.Here’s what I get when I run it over my express-template.coffee package:
It seems TJ has a thing against 0.8 😉