How to check Nuxt Version Easy and Quick
In this tutotrial, we will see how we can check the nuxt version quickly using the terminal or from the package.json file.
Here, in this tutorial we will see how to check our Nuxt Version quickly. It helps us when we need to upgrade it or to check our dependencies with different npm modules.
If you have an existing nuxtjs project and you want to check which version of nuxt you are using, you can find it out using this two simple methods:
Method 1: Using Terminal
Open your cmd or your terminal inside your nuxt application directory and run the following command:
npm list nuxt
OUTPUT:
-- nuxt@2.15.8
Method 2 : Check in your package.json
You can find out your nuxt version very easily just by checking your package.json file.
{ "name": "nuxt-template", "version": "1.0.0", "private": true, "scripts": { "dev": "nuxt", "build": "nuxt build", "start": "nuxt start", "generate": "nuxt generate" }, "dependencies": { "core-js": "^3.9.1", "nuxt": "^2.15.3", }, "devDependencies": {} }
There you can see under dependencies, nuxt version is "^2.15.3".
Related Posts
How to add common header and footer in Nuxt
Short post on how to add common header and footer component for all your pages in your nuxt application using layouts directory.
How to add external script tag in head in Nuxt
To add external javascript script in nuxt we have to add the script tag with src in the head() method.
Convert image to webp in nuxtjs | Image Optimization
To optimize an image in nuxt we have to use the @nuxt/image module. It can convert an image to webp format in nuxt application.
How to add custom static 404 error page in Nuxt ?
This article is about how to add a custom static 404 page in our nuxt application. 404 error page willbe the fallback page if a page is not found in the static site.
