Shields: Node version badge show wrong number

Created on 15 Jan 2018  路  2Comments  路  Source: badges/shields

[![node](https://img.shields.io/node/v/passport.svg)](https://github.com/elvinn/git-master-merged)

I add a node version badge to my project. Although I set engines.node value as >= 6.0.0 in package.json, the badge shows >= 0.4.0.

Is my usage wrong? Will shields.io parse engines.node to generate the badge?

Thanks a lot!

question

Most helpful comment

The badge URL you've used is for someone else's project. It reports the correct value for passport :)

The badge URL for your project is https://img.shields.io/node/v/git-master-merged.svg

At the moment it will show 'not specified' because it gets the node compatibility info from NPM, not GitHub. The version of git-master-merged on NPM doesn't haveengines.node. It will update when you next publish your package to NPM.

All 2 comments

The badge URL you've used is for someone else's project. It reports the correct value for passport :)

The badge URL for your project is https://img.shields.io/node/v/git-master-merged.svg

At the moment it will show 'not specified' because it gets the node compatibility info from NPM, not GitHub. The version of git-master-merged on NPM doesn't haveengines.node. It will update when you next publish your package to NPM.

It works out. Thanks for your reply 馃樅

Was this page helpful?
0 / 5 - 0 ratings