cdk8s-team / cdk8s-cli

Apache License 2.0
37 stars 23 forks source link

init fails on windows (pnpm) #2419

Closed gabrielsantosblanchet closed 2 months ago

gabrielsantosblanchet commented 2 months ago

following the tutorial https://cdk8s.io/docs/latest/get-started/typescript/#set-up-an-environment

when I do pnpm install -g cdk8s-cli mkdir my-project cd ./my-project

I get No package.json (or package.yaml, or package.json5) was found in "C:\Users\<user>\Source\repos\infrastructure-as-code".

but if I do pnpm init to add a package.json then I get Cannot initialize a project in a non-empty directory

Environment:

thanks for the help

iliapolo commented 2 months ago

@gabrielsantosblanchet

No package.json (or package.yaml, or package.json5) was found in "C:\Users\\Source\repos\infrastructure-as-code".

Which commands gives you this error?

The complete flow should be:

pnpm install -g cdk8s-cli
mkdir my-project
cd ./my-project
cdk8s init typescript-app

Is that what you did?

gabrielsantosblanchet commented 2 months ago

yes that is what I did.

I don't know what happened but now it works.

thanks