我正在尝试通过安装babel 7升级到使用最新版本的javascript,并通过使用asyn / await语法时不断收到错误来关联相关的预设,错误为: ReferenceError:未定义regeneratorRuntime
package.json
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.4.0",
"@babel/preset-env": "^7.4.2",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.5",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-watch": "^7.0.0",
"nodemon": "^1.18.10"
.babelrc:
{
"presets": ["@babel/preset-env"]
}