运行任何cdk cli命令时出现以下错误:
Maximum call stack size exceeded
(node:46265) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 beforeExit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
Subprocess exited with error 1对以下内容使用cdk cli的示例代码:
import { Stack, Construct, StackProps } from '@aws-cdk/core';
import * as s3 from '@aws-cdk/aws-s3'
export class MyFirstS3Stack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope,id,props);
new s3.Bucket(this,'MyFirstBucket');
}
}发布于 2020-06-02 09:49:42
我能够解决上面的问题,在删除了上面构造的旧的编译js文件之后。我重新遵循了上面的文件,一切又开始工作了。
https://stackoverflow.com/questions/62132009
复制相似问题