查閱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.
總之就是說(shuō)babel-node在7版本,需要單獨(dú)安裝一個(gè)叫@babel/node
的包
安裝后就可以了哈