我在自述文件中做了所有的事情,我用npm i -S babel-preset-php安装了预设。然后我创建了一个包含以下内容的.babelrc文件; "presets": ["php"]已使用npm i -g babel-cli安装cli。但是我在脚本的执行过程中遇到一个错误:
/home/claudio/Documents/Development/babel/node_modules/babel
我试图将我的babel从6升级到7,但我遇到了这个问题。/Users/darryl/Documents/Github/apps/node_modules/babel-register/node_modules/babel-core/lib/transformationor "babel-core" to see what is calling Babel.Github/