Nuxt
Endless Lifecycle Support (ELS) for Nuxt from TuxCare provides security fixes for Nuxt versions that have reached their end of life. With ELS, you can continue running Nuxt applications without vulnerability concerns, even after official support has ended.
Supported Versions
- Nuxt 0.10.7, 1.4.5, 2.18.1, 3.2.0, 3.12.3, 3.12.4, 4.0.3
Installation
Docker compatibleHave a SecureChain token?
Follow the SecureChain installation instructions instead — the steps below are for username & password access.
Prerequisites
- npm package manager installed
- TuxCare registry token — contact [email protected]
- To browse available artifacts, visit TuxCare Nexus and click Sign in in the top right corner. You may need to refresh the page after logging in.
Create or update the .npmrc file
Navigate to the root directory of your Nuxt project and create a
.npmrcfile or update it if it already exists.Example:
my-nuxt-project/ ├── node_modules/ ├── package.json ├── .npmrc ⚠️ ← Create it here └── package-lock.jsonConfigure the npm registry
Use an editor of your choice (e.g., VS Code) to add the following registry address lines to the
.npmrcfile:registry=https://registry.npmjs.org/ @els-js:registry=https://nexus.repo.tuxcare.com/repository/els_js/ //nexus.repo.tuxcare.com/repository/els_js/:_auth=${TOKEN}Replace
${TOKEN}with the token you received from [email protected].Update dependencies
Update your
package.jsonfile to add the following overrides for the TuxCare packages:"dependencies": { "nuxt": "npm:@els-js/nuxt@>=3.12.4-tuxcare.1" }, "overrides": { "[email protected]": "npm:@els-js/nuxt@>=3.12.4-tuxcare.1" }Refresh the project dependencies
Remove
node_modules,package-lock.json, and clear the npm cache:rm -rf node_modules package-lock.json && npm cache clean --forceInstall dependencies:
npm installThe token for the TuxCare repository is automatically picked up from your
.npmrcfile.Verify the setup
Use npm to list the project's dependencies and confirm that npm resolves TuxCare packages correctly:
npm listAfter reviewing the dependencies, run your application to ensure everything works correctly. The
npmtool identifies and resolves dependencies from the TuxCare ELS for Nuxt repository.
