-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm ci
always fails when pdk is installed
#381
Comments
Hi @tmokmss, the PDK project (this github repo) itself requires PNPM, but the nx-monorepo project does not require PNPM and should default to projen default packageManager of YARN. Can you try using the individual packages rather than bundled |
Hi @JeremyJonas, you saved my day, thanks! Yeah I also think the bundled package should be deprecated and clearly described in README to avoid confusion. |
Closed as part of: #384 |
pdk 0.22.12 cd `mktemp -d`
pdk new --package-manager=npm monorepo-ts
npm ci results in
What package manager do maintainers of this repo use with pdk? Is everyone using |
Fixed as part of: #602 Be sure to install the latest
|
This still fails for me using 0.22.30 😢
|
Describe the bug
Similar to #282,
npm ci
raises an error when used with pdk, but this time I have found no workaround as long as we use npm. Please see the reproduction step.Because
npm ci
is a crucial command for npm users to install dependencies without modifyingpackage-lock.json
, this issue effectively makes pdk unusable for npm users.I see PDK assumes to be used with pnpm, but is the above behavior expected? I feel it is unreasonable to shut out npm, which is a default package manager for Node.js.
Expected Behavior
npm ci
successes.Current Behavior
npm ci
fails with an error.Reproduction Steps
Possible Solution
This bundledDependencies part may be working unexpectedly in npm, as in #282 (comment).
https://github.com/aws/aws-prototyping-sdk/blob/cf57586f2567a571c734606d6f003f6a5051bfca/private/projects/nx-monorepo-project.ts#L22-L27
Additional Information/Context
No response
PDK version used
0.17.4
What languages are you seeing this issue on?
No response
Environment details (OS name and version, etc.)
macOS 12.6.5
The text was updated successfully, but these errors were encountered: