Create-nuxt-app: [Feature Request]: Notify users if they're using an older version

Created on 15 Jan 2020  路  9Comments  路  Source: nuxt/create-nuxt-app

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.

feature-request

Most helpful comment

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

All 9 comments

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:

image

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:
Screenshot 2020-04-11 at 9 05 39 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

senky picture senky  路  4Comments

lihbr picture lihbr  路  3Comments

miteyema picture miteyema  路  6Comments

tabishiqbal picture tabishiqbal  路  5Comments

Aperrix picture Aperrix  路  4Comments