How to check my create-nuxt-app version and upgrade it?

16,535

Solution 1

I finally found an answer here and there:

enter image description here

This execution screenshot from @manniL on Github is helpful also:

enter image description here

Solution 2

You are fine. You don't need to do anything.

If you create a project with create-nuxt-app you get "nuxt": "^2.0.0" in your package.json which means that your project automatically uses the latest 2.x.x version of nuxt. Also if there'll be an update to nuxt your project with update itself.

And to answer your two questions:

  • If you have create-nuxt-app installed in your project you can check its version using npm list create-nuxt-app (make sure you are in the project's directory). If it's installed globally you can check the version using npm list create-nuxt-app -g.
  • You can install create-nuxt-app locally using npm install create-nuxt-app and globally with npm install -g create-nuxt-app.

Solution 3

If you have installed create-nuxt-app globally using npm, first uninstall that. Using the below command.

npm uninstall -g create-nuxt-app

Then reinstall it. And the latest version of the package will be installed.

npm install -g create-nuxt-app

Solution 4

To check the existing NuxtJS Version of the project, run yarn why nuxt on your terminal from the project root directory.

yarn why teminal screenshot

If you want to check for the VueJS version, install Vue Developer tool web extension, and check for Vue version.

source

Vue dev tool image with vue version

Share:
16,535
Billal Begueradj
Author by

Billal Begueradj

I am Billal BEGUERADJ. My blog: www.begueradj.com The longest answer here and this question are mine (previous profiles).

Updated on June 04, 2022

Comments

  • Billal Begueradj
    Billal Begueradj almost 2 years

    Background:

    Previously, running yarn create nuxt-app myApp installs Nuxt v2.4.0 but today for example I noticed you downgraded to Nuxt v2.0.0. I did not change the development environment so I can not understand this behavior.

    I did some search and complained elsewhere when I landed on this:

    enter image description here

    So the OP was asked to upgrade his create-nuxt-app version.

    Question:

    But how to do that ? How to check which create-nuxt-app I do have ?

    Bonus:

    I read why does Create-Nuxt-App installs nuxt version 1.4.5? and the answer says you: "Make sure you don't have a version of create-nuxt-app installed locally or globally." But how do you even install create-nuxt-app locally and globally ?

    Info:

    When I run npm list -g | grep 'nuxt-app' I do not get anything.

  • Admin
    Admin over 4 years
    I've updated my post, would you please take a loot at it?