node error with clasp on node v18

41 views
Skip to first unread message

Vijay Tailor

unread,
Oct 19, 2023, 7:07:46 PM10/19/23
to Google Apps Script Community
Hey there, I tried to use clasp with node v18.17.1 and v18.18.2 and got the same error when running clasp commands in the terminal:

clasp login
node:internal/modules/cjs/loader:1077
  const err = new Error(message);
              ^

Error: Cannot find module 'define-data-property'

I tried it with node v21.0.0 and the error is gone

This used to work without any issues, and as far as I know, node v18 is considered LTS, so I guess clasp should be tested to work with it, shouldn't it?

Can anyone please confirm or deny this problem?

Kind regards,
Tailor
Reply all
Reply to author
Forward
0 new messages