Skip to content

Commit

Permalink
docs(pipelines): document multiple NPM versions issue (#13687)
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
rix0rrr authored Mar 19, 2021
1 parent ab2c48e commit aa45ede
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/@aws-cdk/pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,18 @@ ID: ...)
The stack failed its previous deployment, and is in a non-retryable state.
Go into the CloudFormation console, delete the stack, and retry the deployment.

### Cannot find module 'xxxx' or its corresponding type declarations

You may see this if you are using TypeScript or other NPM-based languages,
when using NPM 7 on your workstation (where you generate `package-lock.json`)
and NPM 6 on the CodeBuild image used for synthesizing.

It looks like NPM 7 has started writing less information to `package-lock.json`,
leading NPM 6 reading that same file to not install all required packages anymore.

Make sure you are using the same NPM version everywhere, either downgrade your
workstation's version or upgrade the CodeBuild version.

## Current Limitations

Limitations that we are aware of and will address:
Expand Down

0 comments on commit aa45ede

Please sign in to comment.