我知道这个问题已经被问了很多,但是我觉得我已经尝试了一切。到目前为止,几个月来我还没有遇到过node或npm的任何问题。我正在关注Airtable Hello World Tutorial。我附上了截图以节省您的时间。他们指示您:
block init xxxxxxxxx/yyyyyyyyyyyyy --template=https://github.com/Airtable/blocks-hello-world hello_world
这是问题开始的地方。我收到错误消息zsh: command not found: block
。
source ~/.bash_profile
tp,我的~/.zshrc
~/.zshrc
npm@6.13.4 /usr/local/lib/node_modules/npm
运行echo $PATH
会得到:
/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
运行which zsh
会得到:
/usr/local/bin/zsh
运行which npm
会得到:
/usr/local/bin/npm
运行npm list -g | head -n 1
会得到:
/Users/{MY_NAME}/.npm-global/lib