-
Notifications
You must be signed in to change notification settings - Fork 65
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] dependencies are not installed by npm #282
Comments
This has been resolved in #315 |
Hi @agdimech thank you for working on the issue! I'm afraid it is still not fixed though. I see the same npm error by the same reproduction step:
Reproducible with |
Hi @agdimech I did a bit of research about this. The below is the command history when reproducing this issue:
so 135 packages are missing right after running I found all of the 135 packages are from less node_moduels/aws-prototyping-sdk/package.json
# we can find this.
"bundledDependencies": [
"@nrwl/devkit"
], This issue should be fixed by removing this bundled dependency. The question is then why do we need this package as a bundled dependency? It seems it is coming from this code: Reading through this stackoverflow comment, I don't see much reason to do that. |
Describe the bug
Hi, I'm using PDK with npm and observing a weird behavior about npm install or npm update. Could you check this? The reproduction steps are below.
Expected Behavior
npm i aws-prototyping-sdk
should install all the dependencies, andnpm update
won't remove any packages.Current Behavior
Not all the required packages are installed on
npm i aws-prototyping-sdk
.Also
npm update
removes several dependent packages of PDK, causing inconsistency between package.json and package-lock.json.Reproduction Steps
Run the following commands in an empty directory:
I confirmed the issue on both npm v8 and v9.
Possible Solution
No response
Additional Information/Context
npm ci
is the command we recommend for customers to use to install dependencies, but currently customers sometimes see the above error, getting confused. (e.g. after runningnpm update
, they get the error onnpm ci
.)PDK version used
0.13.5
What languages are you seeing this issue on?
TypeScript
Environment details (OS name and version, etc.)
macOS 12.6.3
The text was updated successfully, but these errors were encountered: