Nuxt 2 Getting Started
Configure and install the latest NES version of Nuxt 2
Minimum Requirements
Please review our Minimum Requirements to ensure a smooth installation. Then follow 3 easy steps:
- Update your
package.json
- Create or update your
.npmrc
file - Install & Run!
Detailed Instructions
Compatibility
These are the instructions for if you are using Nuxt 2 Standalone. The versions of Nuxt 2 we deploy only work with Vue 2.7.
Substitute Nuxt references in your package.json and ensure the Vue and server-renderer versions match within your dependencies and overrides
The below code block is an example for a Nuxt-only Never-Ending Support License
Note for Vue 2.7 Customers
The values for vue, vue-template-renderer, and vue-server-renderer in the below code block are using the publicly available (and end-of-life) version of Vue.
This means if you have both Never-Ending Support for Vue + Nuxt 2, replace the "vue" and related sub-packages with the HeroDev's Never-Ending Support (maintained + patched) versions.
If you are using Node 14, you will need to declare the overrides as devDependencies as well, and pass the --legacy-peer-deps flag into npm install.
If you are a Vue 2 NES customer, please replace Vue, vue-server-renderer, and vue-template-renderer with the latest version number available for these packages. The most important part is that there is no version number mismatch between these packages. You may need to remove your node_modules and package-lock.json when making changes inside of here.
To test if your module resolutions are being picked up properly, you can use npm why package-name
to figure out what dependency is not being overwritten.
Create an .npmrc file with the following:
Replace <NES_ACCESS_TOKEN> with your access token
Install your dependencies and run the service
And just like that, you're running Nuxt 2 with Never-Ending Support!
Additional Information
Package Name & Config Instructions | Latest NES Version | Direct Download Link |
---|---|---|
nuxt | 2.18.1-nuxt-2.18.4 | Download |
babel-preset-app | 2.18.1-babel-preset-app-2.18.4 | Download |
builder | 2.18.1-builder-2.18.4 | Download |
cli | 2.18.1-cli-2.18.4 | Download v1.1 |
config | 2.18.1-config-2.18.4 | Download |
core | 2.18.1-core-2.18.4 | Download |
generator | 2.18.1-generator-2.18.4 | Download |
nuxt-start | 2.18.1-nuxt-start-2.18.4 | Download |
server | 2.18.1-server-2.18.4 | Download |
types | 2.18.1-types-2.18.4 | Download |
utils | 2.18.1-utils-2.18.4 | Download |
vue-app | 2.18.1-vue-app-2.18.4 | Download |
vue-renderer | 2.18.1-vue-renderer-2.18.4 | Download |
webpack | 2.18.1-webpack-2.18.4 | Download |