-
Notifications
You must be signed in to change notification settings - Fork 345
StandardNpmSynthOptions doesn't contain InstallCommands #175
Comments
Hey @OksanaH, I can confirm this, I will look into a patch ASAP. 😸 😷 |
@NGL321 It looks to me like the BuildCommands and InstallCommands should be BuildCommand and InstallCommand. The extra "s" isn't required as shown here: These commands should be singular strings instead of arrays of commands. You can workaround this with the following which fixes the issue:
This also ties into the following ticket about passing multiple synth commands instread of the awkward && way of chaining commands. aws/aws-cdk#9357 |
However this does leads to other issues down the line of not being able to install dotnet-sdk-3.1 on Code Build which i think is related to this thread - dotnet/core#4360 |
I think this command will do the .NET Core installation: "npm install -g aws-cdk && wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && apt-get update && apt-get install -y apt-transport-https && apt-get update && apt-get install -y dotnet-sdk-3.1" |
@OksanaH Thank you! That got me over one hurdle. |
Running this just 2 weeks ago, I used these lines of code. No need to install dotnet-sdk-3.1 on CodeBuild and I targeted the InstallCommand = "npm install -g aws-cdk",
BuildCommand = "dotnet build src", // Language-specific build cmd |
|
Hello I've pulled the repo, and am getting the error "StandardNpmSynthOptions doesn't contain InstallCommands/BuildCommands" in PipelineStack.cs
The text was updated successfully, but these errors were encountered: