Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Nuxt.js to the latest version [closed]

I'm using Nuxt.js 1.2 in my project, but I want to update it to latest version. How to do it? What needs to be considered when updating the version?

like image 703
nuxt vie Avatar asked Nov 21 '18 11:11

nuxt vie


1 Answers

Simply run: yarn upgrade nuxt@^2.3.2

As stated here:

Please note that for upgrading Nuxt.js just changing version inside package.json is not enough. Please use yarn upgrade or npm upgrade so that the final directory structure of node_modules will be correct. In case of problems clean up node_modules and yarn.lock/package-lock.json.

like image 67
Billal Begueradj Avatar answered Nov 20 '22 17:11

Billal Begueradj