Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

Failure to run blocks-cli after install

Topic Labels: Custom Extensions
Solved
Jump to Solution
1677 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Tom_Hartley
4 - Data Explorer
4 - Data Explorer

Hi all!

I’ve installed the blocks-cli through node, but when I try and run it (for example the command to set up a hello world block, but also just running ‘block’ on its own) I get the following error:

/usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/update-notifier/index.js:74
			(async () => {
			       ^
SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/@airtable/blocks-cli/transpiled/src/run_block_cli_async.js:215:454)

Could anyone shed some light on how I might be able to resolve this? Thank you!

Tom

1 Solution

Accepted Solutions
Tom_Hartley
4 - Data Explorer
4 - Data Explorer

Sooo turns out if your node version is 6 (!) then things don’t work quite as they should. I updated to 14.7, reinstalled and all is looking much healthier.

See Solution in Thread

1 Reply 1
Tom_Hartley
4 - Data Explorer
4 - Data Explorer

Sooo turns out if your node version is 6 (!) then things don’t work quite as they should. I updated to 14.7, reinstalled and all is looking much healthier.