I'm trying to build a custom React Component. I am following the example here Build custom component libraries | Retool Docs.
When I try to install the package (npm i @tryretool/custom-component-support)
I get an error that isn't very helpful. Any idea ?
npm error code 1
npm error path /Users/mslade/Documents/nodeProjects/new-custom-component/node_modules/esbuild
npm error command failed
npm error command sh -c node install.js
npm error node:internal/errors:984
npm error const err = new Error(message);
npm error ^
npm error
npm error Error: Command failed: /Users/mslade/Documents/nodeProjects/new-custom-component/node_modules/esbuild/bin/esbuild --version
npm error at genericNodeError (node:internal/errors:984:15)
npm error at wrappedFn (node:internal/errors:538:14)
npm error at checkExecSyncError (node:child_process:891:11)
npm error at Object.execFileSync (node:child_process:927:15)
npm error at validateBinaryVersion (/Users/mslade/Documents/nodeProjects/new-custom-component/node_modules/esbuild/install.js:98:28)
npm error at /Users/mslade/Documents/nodeProjects/new-custom-component/node_modules/esbuild/install.js:285:5 {
npm error status: null,
npm error signal: 'SIGKILL',
npm error output: [ null, Buffer(0) [Uint8Array] , Buffer(0) [Uint8Array] ],
npm error pid: 96815,
npm error stdout: Buffer(0) [Uint8Array] ,
npm error stderr: Buffer(0) [Uint8Array]
npm error }
npm error
npm error Node.js v20.17.0