[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Feedback](/c/feedback/8)

# Nuxt 4.4.2 installation fails with vue-router peer dependency conflict for @vercel/analytics

30 views · 1 like · 1 post


Ensmsglu (@ensmsglu) · 2026-03-17 · ♥ 1

## Problem
I'm having trouble installing Speed Insights and Analytics in a `nuxt` 4.4.2 project due to a dependency conflict.

## Dependencies
```json
{
  "dependencies": {
    "@aws-sdk/client-s3": "^3.600.0",
    "@aws-sdk/s3-request-presigner": "^3.600.0",
    "@nuxt/eslint": "^1.15.2",
    "@nuxt/fonts": "^0.14.0",
    "@nuxt/icon": "^2.2.1",
    "@nuxt/image": "^2.0.0",
    "@nuxtjs/google-fonts": "^3.2.0",
    "@nuxtjs/i18n": "^10.2.3",
    "@nuxtjs/seo": "^3.4.0",
    "@nuxtjs/supabase": "^2.0.4",
    "@nuxtjs/tailwindcss": "^6.14.0",
    "@pinia/nuxt": "^0.11.3",
    "@vueuse/nuxt": "^14.2.1",
    "marked": "^17.0.4",
    "nuxt": "^4.4.2",
    "nuxt-icon": "^1.0.0-beta.7",
    "nuxt-security": "^2.5.1",
    "nuxt-zod-i18n": "^1.12.1",
    "vue": "^3.5.30",
    "vue-router": "^5.0.3",
    "zod": "3.21"
  }
}
```

## Error Log
I get the following `npm error` during deployment:

```bash
14:36:41.596
npm error 4 more (@nuxt/vite-builder, @vercel/analytics, …)
14:36:41.596
npm error
14:36:41.596
npm error Could not resolve dependency:
14:36:41.596
npm error peerOptional vue-router@"^4" from @vercel/analytics@2.0.1
14:36:41.596
npm error node_modules/@vercel/analytics
14:36:41.596
npm error @vercel/analytics@"^2.0.1" from the root project
14:36:41.596
npm error
14:36:41.596
npm error Conflicting peer dependency: vue-router@4.6.4
14:36:41.596
npm error node_modules/vue-router
14:36:41.596
npm error peerOptional vue-router@"^4" from @vercel/analytics@2.0.1
14:36:41.596
npm error node_modules/@vercel/analytics
14:36:41.596
npm error @vercel/analytics@"^2.0.1" from the root project
14:36:41.596
npm error
14:36:41.596
npm error Fix the upstream dependency conflict, or retry
14:36:41.596
npm error this command with --force or --legacy-peer-deps
14:36:41.596
npm error to accept an incorrect (and potentially broken) dependency resolution.
14:36:41.596
npm error
14:36:41.596
npm error
14:36:41.596
npm error For a full report see:
14:36:41.596
npm error /vercel/.npm/_logs/2026-03-17T11_36_38_071Z-eresolve-report.txt
14:36:41.597
npm error A complete log of this run can be found in: /vercel/.npm/_logs/2026-03-17T11_36_38_071Z-debug-0.log
14:36:41.630
Error: Command “npm install” exited with 1
```