create-nuxt-app
create-nuxt-app copied to clipboard
[Feature Request]: Notify users if they're using an older version
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
.
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?
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.
\cc @clarkdo @Atinux
@jamesgeorge007 Thanks, I'll have a look at this request
Can I work on this?
I think so, but let ask if @Atinux and @pi0 have any thought.
With npm i -g create-nuxt-app
& create-nuxt-app client
or npx create-nuxt-app client
It was generated like this:
Several outdated versions, that's right?
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
The @vue/cli already has feature like this: