File tree Expand file tree Collapse file tree 3 files changed +14980
-10206
lines changed Expand file tree Collapse file tree 3 files changed +14980
-10206
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,27 @@ nx add @nx/angular
149149nx add @nx/react
150150```
151151
152+ ### Fix the NPM Install Error
153+
154+ If you get an error when running the ` npm install ` command,
155+ you will need to fix the error or use the ` --force ` option.
156+
157+ This error is caused by a dependency conflict between the packages that this version of nx uses.
158+
159+ I was able to fix the error by changing the ` package.json ` file as follows.
160+
161+ * Change the version of jest and related items from 30.0.2 or 30.0.0 to 29.5.0.
162+ * Change the version of jest-preset-angular from 15.0.0 to 14.6.1.
163+
164+ ```
165+ "@types/jest": "^29.5.0",
166+
167+ "jest": "^29.5.0",
168+ "jest-environment-jsdom": "^29.5.0",
169+ "jest-preset-angular": "~14.6.1",
170+ "jest-util": "^29.5.0",
171+ ```
172+
152173Commit and push the changes.
153174
154175## Generate the Angular Host App and Two Remotes
You can’t perform that action at this time.
0 commit comments