简体   繁体   English

“CDK 部署”不启动

[英]"CDK deploy" doesn't start

Hi everyone I'm pretty new in AWS CDK and wanted to create a simple app (javaScript) with AWS developer guide: https://docs.aws.amazon.com/cdk/latest/guide/hello_world.html大家好,我是 AWS CDK 的新手,想使用 AWS 开发人员指南创建一个简单的应用程序 (javaScript): https://docs.aws.amazon.com/cdk/latest/guide/hello_world.html

it seems like everything is work fine but when I'm trying to run "cdk deploy" command the deploy is not even starting and is stack in this stage:似乎一切正常,但是当我尝试运行“cdk deploy”命令时,部署甚至没有开始,并且处于这个阶段: 在此处输入图像描述

does somebody know what I'm doing wrong or how to get the actual error?有人知道我做错了什么或如何得到实际错误吗?

using -vvv and --debug options will help you identify the potential issues.使用 -vvv 和 --debug 选项将帮助您识别潜在问题。

For me, I had to go into my package.json file and remove the bin node.对我来说,我必须将 go 放入我的package.json文件并删除bin节点。 So I changed this...所以我改变了这个...

{
  "name": "cdk",
  "version": "0.1.0",
  "bin": {
    "cdk": "bin/cdk.js"
  },
  "scripts": {
    "build": "tsc && npx cdk synth",
    "watch": "tsc -w",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/node": "10.17.27",
    "@types/prettier": "2.6.0",
    "aws-cdk": "2.55.1",
    "ts-node": "^10.9.1",
    "typescript": "~3.9.7"
  },
  "dependencies": {
    "aws-cdk-lib": "2.55.1",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.21"
  }
}

To this...对此...

{
  "name": "cdk",
  "version": "0.1.0",
  "scripts": {
    "build": "tsc && npx cdk synth",
    "watch": "tsc -w",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/node": "10.17.27",
    "@types/prettier": "2.6.0",
    "aws-cdk": "2.55.1",
    "ts-node": "^10.9.1",
    "typescript": "~3.9.7"
  },
  "dependencies": {
    "aws-cdk-lib": "2.55.1",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.21"
  }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM