Unable to install blocks-cli

Hello,
I’m trying to create a new block,
but npm install -g @airtable/blocks-cli is not working
The error log:
ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR!
System Darwin 19.3.0
node-pre-gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/nodegit
node-pre-gyp ERR! node -v v12.18.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok

Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/nodegit/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nodegit@0.26.5 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nodegit@0.26.5 install script.

npm -v
6.14.4

node -v
v12.18.0

Mac OS X: 10.15.3

Any help appreciated.

I got the same error on ubuntu 18.04 on WSL trying to install v0.0.53. v0.0.52 installs successfully.

@Sergey_Royz you can install 0.0.52 by:

npm install -g @airtable/blocks-cli@0.0.52

Cheers,
Ronen Babayoff
Superblocks.at

2 Likes

Awesome, it worked! Thanks!

1 Like

There is a known issue with node-gyp & macOS Catalina the solution is to install “Command Line Tools for Xcode” manually from https://developer.apple.com/download/more

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

Hi, we just released a new version of blocks-cli (0.0.54) which shouldn’t have this problem.

Thanks for reporting this issue!

2 Likes