Can't install tryretool/custom-component-support with NPM

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

Looks like it is my local Airlock application that is blocking it.

Good catch, @mslade! Is it possible to allow-list the package itself or is the install being blocked by an insecure dependency? If the latter, can are you able to identify which one? I can let that team know about the issue. :+1:

I think it it is just the allow list. I've got it on there now and it worked correctly

1 Like