Это совершенно новый проект, в котором все, что я сделал, — это запустил приложение cdk init — язык csharp.
Я использую:
Node версии 20.10.0
Npm версии 8.19.4
Cdk версии 2.132.1 (сборка 9df7dd3)
Aws cli veriosn aws-cli/2.4.7 Python/3.8.8 Windows/10 exe/AMD64 приглашение/отключение
Трассировка стека при выполнении команды cdk развертывание:
Unhandled exception. Amazon.JSII.Runtime.JsiiError: Child process exited unexpectedly!
at Amazon.JSII.Runtime.Services.Runtime.ReadResponse()
at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
at Amazon.JSII.Runtime.Services.Client.Hello()
at Amazon.JSII.Runtime.Services.ServiceContainer.BuildServiceProvider(ILoggerFactory loggerFactoryOverride)
at Amazon.JSII.Runtime.Services.ServiceContainer.c.b__8_0()
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at System.Lazy`1.get_Value()
at Amazon.JSII.Runtime.Services.ServiceContainer.get_ServiceProvider()
at Amazon.JSII.Runtime.Deputy.JsiiTypeAttributeBase.Load(Assembly assembly)
at Amazon.JSII.Runtime.Deputy.JsiiTypeAttributeBase.Load(Assembly assembly)
at Amazon.JSII.Runtime.Deputy.DeputyBase..ctor(DeputyProps props)
at Constructs.Construct..ctor(DeputyProps props)
at Amazon.CDK.Stage..ctor(DeputyProps props)
at Amazon.CDK.App..ctor(IAppProps props)
at NhomeCdkCodepipeline.Program.Main(String[] args) in C:\Git\NEMS\nems-home\NhomeCdkCodepipeline\src\NhomeCdkCodepipeline\Program.cs:line 12
node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module 'C:\Users\Firstname'
at Module._resolveFilename (node:internal/modules/cjs/loader
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.10.0
Subprocess exited with error 3762504530
Подробнее здесь: https://stackoverflow.com/questions/781 ... cdk-deploy