(edited)
Problem
I'm having trouble installing Speed Insights and Analytics in a nuxt 4.4.2 project due to a dependency conflict.
Dependencies
{ "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:
14:36:41.596npm error 4 more (@nuxt/vite-builder, @vercel/analytics, …)14:36:41.596npm error14:36:41.596npm error Could not resolve dependency:14:36:41.596npm error peerOptional vue-router@"^4" from @vercel/analytics@2.0.114:36:41.596npm error node_modules/@vercel/analytics14:36:41.596npm error @vercel/analytics@"^2.0.1" from the root project14:36:41.596npm error14:36:41.596npm error Conflicting peer dependency: vue-router@4.6.414:36:41.596npm error node_modules/vue-router14:36:41.596npm error peerOptional vue-router@"^4" from @vercel/analytics@2.0.114:36:41.596npm error node_modules/@vercel/analytics14:36:41.596npm error @vercel/analytics@"^2.0.1" from the root project14:36:41.596npm error14:36:41.596npm error Fix the upstream dependency conflict, or retry14:36:41.596npm error this command with --force or --legacy-peer-deps14:36:41.596npm error to accept an incorrect (and potentially broken) dependency resolution.14:36:41.596npm error14:36:41.596npm error14:36:41.596npm error For a full report see:14:36:41.596npm error /vercel/.npm/_logs/2026-03-17T11_36_38_071Z-eresolve-report.txt14:36:41.597npm error A complete log of this run can be found in: /vercel/.npm/_logs/2026-03-17T11_36_38_071Z-debug-0.log14:36:41.630Error: Command “npm install” exited with 1