Skip to content

Commit aa45ede

Browse files
authored
docs(pipelines): document multiple NPM versions issue (#13687)
NPM6 can apparently not correctly process a package-lock generated using NPM7. This will crop up more and more as NPM 7 starts becoming more popular; add a documentation section about this. Fixes #13666. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent ab2c48e commit aa45ede

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/@aws-cdk/pipelines/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,18 @@ ID: ...)
749749
The stack failed its previous deployment, and is in a non-retryable state.
750750
Go into the CloudFormation console, delete the stack, and retry the deployment.
751751

752+
### Cannot find module 'xxxx' or its corresponding type declarations
753+
754+
You may see this if you are using TypeScript or other NPM-based languages,
755+
when using NPM 7 on your workstation (where you generate `package-lock.json`)
756+
and NPM 6 on the CodeBuild image used for synthesizing.
757+
758+
It looks like NPM 7 has started writing less information to `package-lock.json`,
759+
leading NPM 6 reading that same file to not install all required packages anymore.
760+
761+
Make sure you are using the same NPM version everywhere, either downgrade your
762+
workstation's version or upgrade the CodeBuild version.
763+
752764
## Current Limitations
753765

754766
Limitations that we are aware of and will address:

0 commit comments

Comments
 (0)