Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.1K
Vistas
Google Sheets API resulting in "GoogleAuth is not a constructor" error in Node

I've been trying to set up a node application with the Google Sheets API, but when initializing as per the documentation I get the following error:

TypeError: google.auth.GoogleAuth is not a constructor

Using the below code:

const {google} = require('googleapis');

const auth = new google.auth.GoogleAuth({
    keyFile: 'credentials.json',
    scopes: ['https://www.googleapis.com/auth/spreadsheets']
});

I've tried looking everywhere but haven't been able to find a solution.

To clarify I have installed googleapis with npm in the project as well

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I had the same problem and updating the googleapis library fixed the issue. Run npm i googleapis@latest and try again.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda