I realize this question has been asked a ton, but I feel like I've tried everything. I haven't had any issues with node or npm for months up until now. I am following Airtable Hello World Tutorial. I attached screenshots to save you time. They instruct you to:
Download their npm package with
npm install -g @airtable/blocks-cli
.Then run (x's and y's are for authorization.)
block init xxxxxxxxx/yyyyyyyyyyyyy --template=https://github.com/Airtable/blocks-hello-world hello_world
This is where the issues start. I get an error that says zsh: command not found: block
.
- I have tried changing my $PATH variable a few different times
- I added
source ~/.bash_profile
tp ,my~/.zshrc
- I tried adding an alias to my
~/.zshrc
- I tried switching to bash and running the commands.
- This (StackOverflow) seems to be the same issue but didn't work for me.
Relevant info
npm@6.13.4 /usr/local/lib/node_modules/npm
When I run echo $PATH
I get:
/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/{MY_NAME}/npm/bin
When I run which zsh
I get:
/usr/local/bin/zsh
When I run which npm
I get:
/usr/local/bin/npm
When I run npm list -g | head -n 1
I get:
/Users/{MY_NAME}/.npm-global/lib