pugjs / pug

Pug – robust, elegant, feature rich template engine for Node.js
https://pugjs.org
21.71k stars 1.96k forks source link

Beta version not following node-semver #2720

Closed chrisnicola closed 7 years ago

chrisnicola commented 7 years ago

The beta version for pug is written out as 2.0.0-betaX which causes NPM to think that beta2 > beta10 when determining how to satisfy a dependency like ^2.0.0-beta2.

The correct format should be 2.0.0-beta.X as specified here

Sjonnie2nd commented 7 years ago

I seconds this: npm outdated Package Current Wanted Latest Location pug 2.0.0-beta9 2.0.0-beta9 2.0.0-beta11 xxx

even an "npm update pug@2.0.0-beta11 --force -save" fails

steve-taylor commented 7 years ago

+1

warning "pug-loader@2.3.0" has incorrect peer dependency "pug@>=2.0.0-beta3 <3".
sonicoder86 commented 7 years ago

Related issue https://github.com/pugjs/pug-loader/issues/76 cc @ForbesLindesay

VitorLuizC commented 7 years ago

+1 This causes me errors in the C9.io environment.

AckerApple commented 7 years ago

This issue is a nasty fly!!!!

Let me throw out possible fixes, so that this comment isn't just a complaint:

Opinion, I more "blame" pug-loader for using peerDependencies to check against a more than fairly solid templating engine. It's still Jade to my heart. I think the pug logo should have a collar with a Jade gem on it.

balciseri commented 7 years ago

+1 please fix

wmzy commented 7 years ago

I could not run npm shrinkwrap success!

ForbesLindesay commented 7 years ago

I didn't know this. The latest release is 2.0.0-beta.12. If that hasn't fixed the problem, please open a new issue and I will do my best to fix things.

Sjonnie2nd commented 7 years ago

Still have the same issue when doing a "npm update pug --save". In stead of updating to 2.0.0-beta.12 it replaces 2.0.0-beta11 with 2.0.0-beta9. Only a full ununstall and, after that, an install works.