It’s Aug 2021. I read the posts from 2020. No help. Just starting here. Trying to do Hello World App., But on OSX Catalina (10.15.7), Blocks will not install.
I tried the suggestion from 2020: “npm install -g @firstname.lastname@example.org”
Either way, lots of warnings about “Please upgrade to version 7” and then failure:
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/loose-envify/cli.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod ‘/usr/local/lib/node_modules/@airtable/blocks-cli/node_modules/loose-envify/cli.js’
npm ERR! enoent This is related to npm not being able to find a file.
It would be great to get off step one. Thanks in advance.
Erin with Airtable Support here - sorry to hear of the trouble with this!
The Blocks CLI latest version is now 0.0.64, so you’ll want to just use this command:
npm install -g @airtable/blocks-cli
to install the latest, rather than installing v0.0.52.
But first - I’ve seen the error you’re encountering before, and it usually occurs with node version 15. This thread has more information - can you check if you are running node 15, and if so, follow the instructions there to use nvm or a similar tool to run v14.15.0 instead? After that, re-try installing the blocks-cli and let me know if it works. Thanks!
So this is expected?