johannschopplich / nuxt-gtag

🔸 Google Analytics & Ads integration made easy
https://developers.google.com/tag-platform/gtagjs
MIT License
302 stars 9 forks source link

Error when #77

Closed BenGoetemann closed 4 months ago

BenGoetemann commented 4 months ago

Environment


Reproduction

not possible

Describe the bug

When installing the package with the npx nuxi@latest module add gtag command i get this error:

Additional context

-

Logs

ERROR  Command failed with exit code 1: corepack yarn add -D nuxt-gtag@latest                                          12:05:12

  at makeError (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/chunks/index3.mjs:1272:11)
  at handlePromise (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/chunks/index3.mjs:2510:26)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async executeCommand (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.0f575f79.mjs:42:3)
  at async addDependency (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.0f575f79.mjs:197:3)
  at async Object.setup (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/chunks/add2.mjs:26228:19)
  at async runCommand$1 (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1620:5)
  at async runCommand$1 (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
  at async runCommand$1 (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
  at async runMain$1 (/Users/ben/.npm/_npx/b95349761371180e/node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)
johannschopplich commented 4 months ago

Can you check if the error occurs with other modules as well? Doesn't seem to be related to this module, as the error comes from the Nuxt CLI, so before Gtag module executed any code.

BenGoetemann commented 4 months ago

Yes, it comes from the nuxi cli. thanks!