Cannot use babel-node? after installing babel-cli

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.

Jul.03,2021

partial installation needs to indicate the path, such as using ". / node_modules/.bin/babel-node app.js"

Menu