create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

[Feature Request]: Notify users if they're using an older version

Open jamesgeorge007 opened this issue 4 years ago • 9 comments

Users may not be aware about any newer releases being made and would end up using the older versions.

update-notifier serves the purpose here. As from the tagline, Inform users of your package of updates in a non-intrusive way.

jamesgeorge007 avatar Jan 15 '20 09:01 jamesgeorge007

if you use npx instead of globally installing npm i -g create-nuxt-app & use create-nuxt-app <app>, wouldn't npx already pull the latest version of cna and scaffold a project for you?

vinayakkulkarni avatar Feb 01 '20 05:02 vinayakkulkarni

Yeah, good point. But, consider this scenario if a user has installed CNA globally so that he can scaffold Nuxt.js projects anytime he wishes for without needing to install the package again. There is a chance that he/she might not be aware of a newer release. This is where update-notifier comes handy.

jamesgeorge007 avatar Feb 01 '20 14:02 jamesgeorge007

\cc @clarkdo @Atinux

jamesgeorge007 avatar Feb 02 '20 12:02 jamesgeorge007

@jamesgeorge007 Thanks, I'll have a look at this request

clarkdo avatar Feb 02 '20 13:02 clarkdo

Can I work on this?

jamesgeorge007 avatar Feb 02 '20 13:02 jamesgeorge007

I think so, but let ask if @Atinux and @pi0 have any thought.

clarkdo avatar Feb 02 '20 13:02 clarkdo

With npm i -g create-nuxt-app & create-nuxt-app client or npx create-nuxt-app client It was generated like this:

image

Several outdated versions, that's right?

adrianoresende avatar Apr 07 '20 23:04 adrianoresende

Because your globally installed version of create-nuxt-app is outdated.

I recommend to use npx all the time and not installing it via npm -g. Otherwise that version will be used all the time and has to be kept up to date via npm update -g

manniL avatar Apr 08 '20 08:04 manniL

The @vue/cli already has feature like this: Screenshot 2020-04-11 at 9 05 39 PM

vinayakkulkarni avatar Apr 11 '20 15:04 vinayakkulkarni