ps-serverless-app icon indicating copy to clipboard operation
ps-serverless-app copied to clipboard

npx cdk deploy gives this error: can't cd to webapp

Open rosdi opened this issue 10 months ago • 0 comments

Hi @davidtucker , first of all thanks for the excellent pluralsight tutorial, but I am currently stuck during deployment.

I just cloned the p2 branch and ran yarn install, but when I cd to the infrastructure directory and run npx cdk deploy is spits out this error:

Bundling asset ApplicationStack/WebApp/WebAppDeploy/WebAppDeploy/Asset1/Stage... /bin/sh: 2: cd: can't cd to webapp.

image

I didn't change anything in the code, it is just a fresh untouched p2 branch.

I am running this build in a docker container so that I can install the same node and yarn version as in the tutorial, only the aws cli is the v2 version (as opposed to v1 you were using), I upgraded to aws cli v2 because I thought it could fix the issue.

If I attempted to use latest versions of node, yarn, npm, cdk, etc I will face a lot of more errors due to outdated packages being used.

Here are my tooling versions if you want to check:

image

node v16.20.2
npm 8.19.4
yarn 1.22.5
aws cli 2.15.34
ubuntu 20.04.4 LTS

I know it might be hard for you to reproduce this issue, but if you do have a few tips please let me know..., in the meantime I will just watch the tutorial and won't be following along...

Regards.

rosdi avatar Apr 04 '24 03:04 rosdi