查阅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
的包
安装后就可以了哈
网友评论