yeoman/update-notifier

It just suggested a version downgrade to me #181

papb posted onGitHub

Screenshot:

image

As text:

$ npx xo --fix


   ╭───────────────────────────────────────╮
   │                                       │
   │   Update available 0.32.0 → 0.30.0    │
   │        Run npm i xo to update         │
   │                                       │
   ╰───────────────────────────────────────╯

What is happening? :sweat_smile:


We also see this:

image

   ╭───────────────────────────────────────────────────╮
   │                                                   │
   │         Update available 0.1.53 → 0.1.51          │
   │   Run yarn global add @plasmicapp/cli to update   │
   │                                                   │
   ╰───────────────────────────────────────────────────╯

@sindresorhus Perhaps due to this line comparing by equality?

https://github.com/yeoman/update-notifier/blob/c9d2166b8303eba2304eff4a007a6a7fa50b6c77/index.js#L117

posted by yang over 4 years ago

Perhaps due to this line comparing by equality?

I don't think that's the underlying reason for it, but it seems like a good workaround for the issue. Just use https://github.com/npm/node-semver to ensure the version is newer.

posted by sindresorhus over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests