I installed babel-cli, in the file using the following command and installed it successfully
npm i babel-cli --save
then I use babel-node in the console to prompt me:
zsh: command not found: babel-node
Baidu also searched, Google also searched. But no one has ever encountered this problem. It seems that I am the first to eat crabs, ask the bosses to help answer.