babel-node: command not found
2022-05-01 本文已影响0人
前端开发_Eric
image.png
查阅babel官方文档如下:
@babel/node
The babel-node
command in Babel 6 was part of the babel-cli
package. In Babel 7, this command has been split out into its own @babel/node
package, so if you are using that command, you'll want to add this new dependency.
总之就是说babel-node在7版本,需要单独安装一个叫@babel/node
的包
安装后就可以了哈