Upgrading
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.
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
nuxtpackage in yourpackage.jsonfile.
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.lockfile - remove
node_modulesdirectory - Run the
yarncommand - After installation has completed and you have run your tests consider upgrading other dependencies as well. The
yarn outdatedcommand can be used.
npm
- remove
package-lock.jsonfile - remove
node_modulesdirectory - Run the
npm installcommand - After installation has completed and you have run your tests consider upgrading other dependencies as well. The
npm outdatedcommand can be used.
Was this helpful?
Conclusion
Congratulations you have now created your first Nuxt app and you may now consider yourself a Nuxter. But there is so much more to learn and so much more you can do with Nuxt. Here are a few recommendations.
.nuxt
The .nuxt directory is the so-called "build directory". It is dynamically generated and hidden by default. Inside the directory you can find automatically generated files when using nuxt dev or your build artifacts when using nuxt build.