Latest Version: 2.18.4 (Updated October 4th, 2024)
How to configure Nuxt 2 NES
First, please review our Minimum Requirements to ensure a smooth installation. Then follow 3 easy steps:
1. Update your package.json
2. Create or update your .npmrc file
3. Install & Run!
Detailed Instructions
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.
1. 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.
{
"dependencies": {
"nuxt": "npm:@neverendingsupport/nuxt2@2.18.1-nuxt-2.18.4",
"vue": "2.7.16"
},
"devDependencies": {
"@nuxt/types": "npm:@neverendingsupport/nuxt2@2.18.1-types-2.18.4"
},
"overrides": {
"nuxt": {".": "npm:@neverendingsupport/nuxt2@2.18.1-nuxt-2.18.4"},
"@nuxt/babel-preset-app": {".": "npm:@neverendingsupport/nuxt2@2.18.1-babel-preset-app-2.18.4"},
"@nuxt/builder": {".": "npm:@neverendingsupport/nuxt2@2.18.1-builder-2.18.4"},
"@nuxt/cli": {".": "npm:@neverendingsupport/nuxt2@2.18.1-cli-2.18.4"},
"@nuxt/config": {".": "npm:@neverendingsupport/nuxt2@2.18.1-config-2.18.4"},
"@nuxt/core": {".": "npm:@neverendingsupport/nuxt2@2.18.1-core-2.18.4"},
"@nuxt/generator": {".": "npm:@neverendingsupport/nuxt2@2.18.1-generator-2.18.4"},
"@nuxt/nuxt-start": {".": "npm:@neverendingsupport/nuxt2@2.18.1-nuxt-start-2.18.4"},
"@nuxt/server": {".": "npm:@neverendingsupport/nuxt2@2.18.1-server-2.18.4"},
"@nuxt/types": {".": "npm:@neverendingsupport/nuxt2@2.18.1-types-2.18.4"},
"@nuxt/utils": {".": "npm:@neverendingsupport/nuxt2@2.18.1-utils-2.18.4"},
"@nuxt/vue-app": {
".": "npm:@neverendingsupport/nuxt2@2.18.1-vue-app-2.18.4",
"vue-template-renderer": "2.7.16"
},
"@nuxt/vue-renderer": {
".": "npm:@neverendingsupport/nuxt2@2.18.1-vue-renderer-2.18.4"},
"vue-server-renderer": "2.7.16"
},
"@nuxt/webpack": {
".": "npm:@neverendingsupport/nuxt2@2.18.1-webpack-2.18.4",
"vue-server-renderer": "2.7.16"
}
}
}
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.
2. Create an .npmrc file with the following:
- Replace <NES_ACCESS_TOKEN>
with your access token
@neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/
//registry.nes.herodevs.com/npm/pkg/:_authToken=<NES_ACCESS_TOKEN>
3. Install your dependencies and run the service:
npm install
npm run serve
And just like that, you're running Nuxt 2 with Never-Ending Support!
Additional Information
The direct download URLs for NES Nuxt 2 are:
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-babel-preset-app-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-builder-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-cli-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-config-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-core-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-generator-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-nuxt-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-nuxt-start-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-server-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-types-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-utils-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-vue-app-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-vue-renderer-2.18.4.tgz
- https://registry.nes.herodevs.com/npm/pkg/@neverendingsupport/nuxt2/-/2.18.1-webpack-2.18.4.tgz