Getting Started
Installation
Quick Start
Nuxt Scripts 2 requires Nuxt ^4.6.0 || ^5.0.0 and Unhead ^3.4.2.
The supported Node.js range is ^22.22.3 || ^24.15.0 || >=26.0.0.
Upgrade an existing project before installing:
npx nuxi@latest upgrade --forceNuxt Scripts 2 is available on the beta channel. Run:
pnpm exec nuxt module add @nuxt/scripts@betaUsing an AI agent? Get the @nuxt/scripts Skill on skilld.dev/gh/nuxt/scripts/nuxt-scripts.
The Nuxt module command installs Nuxt Scripts and adds it to the modules array in your Nuxt config.
The DevTools panel uses the optional @nuxt/scripts-devtools package.
Install the same version as @nuxt/scripts, then restart Nuxt:
pnpm add -D @nuxt/scripts-devtools@betaNext Steps
From here, choose the guide closest to what you need:
- Build a small integration with the Confetti Tutorial.
- Learn when scripts load in Script Triggers.
- Check the Script Registry for a preconfigured integration.
- Load an unlisted script with
useScript()or Global Scripts. - Configure First-Party Mode or Consent Management.
On this page