Upgrading
Upgrading Nuxt is quick, but more involved than updating your package.json
If you are upgrading to Nuxt v2.14 and want to use static hosting then you will need to add target:static
to your nuxt.config.js file in order for the generate command to work properly.
nuxt.config.js
export default {
target: 'static'
}
Getting Started
- Check the release notes for the version you wish to upgrade to see if there are any additional instructions for that particular release.
-
Update the version specified for the
nuxt
package in yourpackage.json
file.
After this step instructions vary depending upon whether you are using Yarn or npm. Yarn is the preferred package manager for working with Nuxt as it is the development tool which tests have been written against.
Yarn
-
remove
yarn.lock
file -
remove
node_modules
directory -
Run the
yarn
command -
After installation has completed and you have run your tests consider upgrading other dependencies as well. The
yarn outdated
command can be used.
npm
-
remove
package-lock.json
file -
remove
node_modules
directory -
Run the
npm install
command -
After installation has completed and you have run your tests consider upgrading other dependencies as well. The
npm outdated
command can be used.
Edit this page on GitHub
Updated at Thu, Feb 9, 2023
Paiva
Florian Reuschel
Sébastien Chopin
Daniel Roe
Rishi Raj Jain
Clément Ollivier
Savas Vedova
Steven Soekha
Vinícius Alves
Kareem Dabbeet
Valentín Costa
Ryan Skinner
Alex Hirzel
Ajeet Chaulagain
René Eschke
Nico Devs
Muhammad
Nazaré da Piedade
Naoki Hamada
Tom
Yann Aufray
Anthony Chu
Nuzhat Minhaz
Lucas Portet
Richard Schloss
bpy
Antony Konstantinidis
Hibariya
Jose Seabra
Eze
Florian LEFEBVRE
Lucas Recoaro
Julien SEIXAS
Hugo
Sylvain Marroufin
Spencer Cooley
Piotr Zatorski
Vladimir Semenov
Harry Allen
kazuya kawaguchi
Unai Mengual
Hyunseung Lee
Alexandre Chopin
pooya parsa
Nick Medrano
Mosaab Emam
Iljs Путлер Капут
Heitor Ramon Ribeiro
Nero
Yoon Han
Ikko Eltociear Ashimine
FamCodings
Ayouli
F. Hinkelmann
felipesuri
Christophe Carvalho Vilas-Boas
Leoš Literák
Trizotti