-
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
ng update deletes node_modules before ensuring it will succeed #22162
Comments
I had an issue with this also, didn't think of rerunning update after deleting the contents of package.json, I ended up copying them to another location and installing them a few at a time with the new version. Something involving |
Same issue with update from Angular 10 to 11. node_modules folder gone! :( :( From
|
I think that removing a
|
🐞 Bug report
Command (mark with an
x
)ng update @angular/cli @angular/cdk ...
Is this a regression?
Not sure. Might be half bug, half feature request.
Description
When updating from angular 12 to 13, the following sequence of events happened:
ng update
to determine dependenciesng update ...
npm install
step triggered byng update
fails due to a peer dependency conflictnode_modules
if thenpm install
with the updated package.json file will fail. Ideally add more details and suggestions here, and roll back the change topackage.json
.ng update
a second time will note no installed dependencies, because apparently the script checksnode_modules
and notpackage.json
.package.json
file. Revertingpackage.json
to head (the 12 installation), runningnpm install
to re-install the now-missingnode_modules
directory, then deletingpackage-lock.json
, will allow theng update
command to run to completion. If this is a common issue, adding some help text in that regard would be nice.🌍 Your Environment
NOTE this is post-upgrade, the bug happened during a 12->13 upgrade.
Anything else relevant?
The text was updated successfully, but these errors were encountered: