You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,18 @@ To create the CodeBuild project please follow these steps:
75
75
6. Leave the _Build specification_ on "Use a buildspec file".
76
76
7. No batch configuration is needed.
77
77
78
+
Frequent errors:
79
+
80
+
-**`npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.`**
81
+
82
+
Troubleshooting:
83
+
84
+
1. Please check the error log for the specific Node version the build environment uses. (e.g. v18.6.0).
85
+
2. On your local environment please install the exact same version of node with `nvm install vX.X.X`. After the installation check the currently used version with the `node -v` command. If it doesn't match the just installed version run the following command: `nvm use vX.X.X`.
86
+
3. Delete the `package-lock.json` file.
87
+
4. Run `npm install`:warning:**twice**:warning:!
88
+
5. Push the updated `package-lock.json` and rerun the CodeBuild.
0 commit comments