Running "mup deploy" with mup-aws-beanstalk results in "Unable to load plugin mup-aws-beanstalk ReferenceError: regeneratorRuntime is not defined"
Running "mup deploy" with mup-aws-beanstalk results in "Unable to load plugin mup-aws-beanstalk ReferenceError: regeneratorRuntime is not defined"
我正在尝试使用 Meteor Up 插件 mup-aws-beanstalk 将项目部署到 AWS。说明非常简单。安装插件,从您的 AWS 帐户获取一些信息,使用与您的项目相关的内容修改文件,运行 部署命令 "mup deploy"。文档在这里 https://github.com/zodern/mup-aws-beanstalk/blob/master/docs/getting-started.md
在部署命令 运行 之后,我得到这个 error/output
PS C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy> mup deploy
Unable to load plugin mup-aws-beanstalk
ReferenceError: regeneratorRuntime is not defined
at C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\command-handlers.js:11:46
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\command-handlers.js:220:2)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\commands.js:8:24)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\index.js:9:18)
PS C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy>
我尝试重新安装 mup 和 mup-aws-beanstalk,但这没有用。我的 env.MONGO_URL 可能是错误的,但我不确定如何检查。 id
和 secret
已替换为适当的信息。
这是我修改的文件:.deploy/mup.js
module.exports = {
app: {
// Tells mup that the AWS Beanstalk plugin will manage the app
type: 'aws-beanstalk',
name: 'radgrad2',
path: 'C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy',
env: {
ROOT_URL: 'http://localhost:3200/',
MONGO_URL: 'mongodb://localhost:27017/radgrad2' //not sure about this, but localhost:27017 is the default local host for MongoDB
},
auth: {
id: '12345', // provided by AWS
secret: '6789' // provided by AWS
},
minInstances: 1
},
plugins: ['mup-aws-beanstalk']
};
我应该在哪里寻找错误的根源?
我用 Google 搜索了这个错误,看起来这两天前就已经修复了。
https://github.com/zodern/mup-aws-beanstalk/issues/104#issuecomment-643861436
你是运行插件的0.6.4和mup 1.5吗?如果是这样,那么您可能想重新打开该问题。
我正在尝试使用 Meteor Up 插件 mup-aws-beanstalk 将项目部署到 AWS。说明非常简单。安装插件,从您的 AWS 帐户获取一些信息,使用与您的项目相关的内容修改文件,运行 部署命令 "mup deploy"。文档在这里 https://github.com/zodern/mup-aws-beanstalk/blob/master/docs/getting-started.md
在部署命令 运行 之后,我得到这个 error/output
PS C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy> mup deploy
Unable to load plugin mup-aws-beanstalk
ReferenceError: regeneratorRuntime is not defined
at C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\command-handlers.js:11:46
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\command-handlers.js:220:2)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\commands.js:8:24)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Arsla\AppData\Roaming\npm\node_modules\mup-aws-beanstalk\lib\index.js:9:18)
PS C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy>
我尝试重新安装 mup 和 mup-aws-beanstalk,但这没有用。我的 env.MONGO_URL 可能是错误的,但我不确定如何检查。 id
和 secret
已替换为适当的信息。
这是我修改的文件:.deploy/mup.js
module.exports = {
app: {
// Tells mup that the AWS Beanstalk plugin will manage the app
type: 'aws-beanstalk',
name: 'radgrad2',
path: 'C:\Users\Arsla\OneDrive\Desktop\Greg\radgrad2\app\.deploy',
env: {
ROOT_URL: 'http://localhost:3200/',
MONGO_URL: 'mongodb://localhost:27017/radgrad2' //not sure about this, but localhost:27017 is the default local host for MongoDB
},
auth: {
id: '12345', // provided by AWS
secret: '6789' // provided by AWS
},
minInstances: 1
},
plugins: ['mup-aws-beanstalk']
};
我应该在哪里寻找错误的根源?
我用 Google 搜索了这个错误,看起来这两天前就已经修复了。
https://github.com/zodern/mup-aws-beanstalk/issues/104#issuecomment-643861436
你是运行插件的0.6.4和mup 1.5吗?如果是这样,那么您可能想重新打开该问题。