-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency issue with 13.1.0 #22333
Comments
This should be fixed by #22334 |
Closed via #22334 |
Hi! Once you fix it, what do I need to do before trying again? |
For quick fix, using node v14.18.2 instead works for me ( replaced node 16.x.x ). |
@abngal It keeps throwing me the error for typescript version, should I downgrade it to 4.4.3? |
You should update the Angular packages to v13.1.0 (which supports TS 4.5). This is what the PR fixed, and it will be released in the next CLI version. |
Until that is released, what version of @angular/* works with 13.1.0 of the CLI? Been unable to update to the 13.0.4 versions for the past week because of version issues between the cli and angular and was hoping now that everything was 13.1.0 that it would all work. |
If you use 13.1.0 for all Angular packages (framework and cli), then everything works out of the box. If you want to stay on Angular v13.0.x then the CLI v13.1 works as well, but you'll have to use TS v4.4 instead of TS v4.5. |
Please update to the most recent version 13.1.1 to resolve the problem. |
This option causes our CI to be green even when new projects are created with mismatching TypeScript versions, which causes failures in a real-world project. See #22333 for more context.
My environment
Still same error at update
|
`The installed local Angular CLI version is older than the latest stable version. Installing a temporary version to perform the update. npm ERR! A complete log of this run can be found in: I have a similar problem when upgrading from 12 to 13 version, here is my ng version info `Angular CLI: 12.2.5 Angular: Package Version@angular-devkit/architect 0.1202.5 (cli-only) |
Lately using ng update for updating Angular and its angular modules are an increasing pain. Every time there is a new version of angular something always brakes with ERR! code ERESOLVE and with angular's own dependencies. Just updating @angular/core to 13.1.2 thowed me an error with @angular/animations. |
This is still broken |
Been working on a project for about a month with no issues using v13.1.0 and went to upgrade this morning and with all of the failures, I was struggling. Later this evening I will provide the errors I am seeing. Primarily has to do with animations. node version => v16.13.1 This project was started on 13.1.0. I am trying to do an update as a result of github identifying a medium vulnerability in node-forge. I also tried with force but the issues seemed to have gotten worse. So I completely backed out of the update. Thoughts on being able to do what seems to be a minor update as the Angular team recommends? |
cexbrayat this does not seem to be fixed and I still constantly run into this issue.
npm ERR! code ERESOLVE --legacy-peer-deps didn't work and I'd rather not keep having to use --force. Why is this constantly broken? |
@bryantlikes I switched to using yarn using the following tutorial and was able to update without any issues. This is a know issue with npm: |
I can look into that. I feel like there weren't any issues with this and Angular until the version numbers on the packages got out of sync. .Not sure what the point of that is but I preferred it when the numbers were in sync as it made it easier to make sure everything was the same version. Is there a reason they are different now? |
Try |
That is what I use |
If you switch to yarn and make it your default package manager, then ng update will work without an issue. https://codinglatte.com/posts/angular/setup-angular-touse-yarn-package-manager/ |
Got similar dependency error while upgrading to Angular 13 from 12, solved by using npm v6, and re-running
(I was previously on Node v12 and npm v8.) You may run into following error during the process depending on the state of your repo:
Solution: run |
This worked for me to go from |
Ok, I was also able to upgrade from 13.1.x to 13.2.x after switching to npm@6. So is this an angular issue or an NPM issue? There has to be a lot of angular developers using npm > 6. |
I guess this line from the packages.json says it all.
|
Same issue on my side with npm@8.3.1. Trying to upgrade from angular 13.1.2 to 13.2.4.
|
@dylanvdmerwe seems the solution is to either install npm@6 or switch to yarn. |
same issue here
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Can you pin-point the command or commands that are effected by this bug?
Did this behavior use to work in the previous version?
Yes
Yes, the previous version in which this bug was not present was: 13.0.0
Description
After I run ng new, npm is returning errors.
🔬 Minimal Reproduction
Log
Report
The text was updated successfully, but these errors were encountered: