Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 436 forks source link

Confusing version output `phantomjs --version` #716

Open micky2be opened 7 years ago

micky2be commented 7 years ago

I have the version 2.1.14 installed through npm but when running phantomjs --version I'm getting 2.1.1

The problem seems to come from that line. https://github.com/Medium/phantomjs/blob/2.1.14/lib/phantomjs.js#L33

Might be probably wiser to pull out the version from the package.json