Skip to content
Advertisement

NodeJS accessing Google SpreadSheets

I made this code (index.js):

JavaScript

I’m trying to connect my code with a google spreadsheet. For the connection, I’m using node.js, but I’m getting this error message.

JavaScript

Does anyone know why I’m getting this error? What am I doing wrong?

Advertisement

Answer

When I saw your showing script and your error message, I’m worried that the current version of google-spreadsheet you are using might be different from your showing script. So, in this answer, I would like to propose a sample script converted from your showing script using the latest version of google-spreadsheet.

When I check the latest version of google-spreadsheet, it seems that it’s 3.2.0. So, first, please check the version of google-spreadsheet you are using. And, please install the latest one.

When your script is modified for using with the latest one (v3.2.0), it becomes as follows.

Modified script:

JavaScript

Reference:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement