Skip to content

Commit c239524

Browse files
Resolve npm install errors
1 parent 6362253 commit c239524

File tree

3 files changed

+14980
-10206
lines changed

3 files changed

+14980
-10206
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,27 @@ nx add @nx/angular
149149
nx 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+
152173
Commit and push the changes.
153174

154175
## Generate the Angular Host App and Two Remotes

0 commit comments

Comments
 (0)