-
Notifications
You must be signed in to change notification settings - Fork 12k
angular cli update issue on local folder #4653
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
Comments
Hi, I am getting this issue too. Have cleared and re-installed my node modules but the 'ng update' command only checks the Readme.md file and then finishes. |
Same issue here. Waiting for a fix for this. |
Same issue here, I think something is broken in the latest angular-cli version 1.0.0-beta.31. |
Having said that, at least the recompile and browser refresh is working okay. Seems to be faster too 👍 |
It looks like they are removing 'ng update and 'ng init' going forward as all new CLI changes are backward compatible from now, as per this comment on a similar issue on this: https://github.com/angular/angular-cli/issues/4584#issuecomment-279273790 |
If they're removing it that's unfortunate, one of the biggest things for me was the init / update commands as it helped us stay in sync with the current templates/blueprints. I thought one of the goals was that those commands would get better and help us satisfy breaking changes in angular itself going forward? |
The command is going away as going forward the team wants to have very little to no breaking changes at all between Angular Cli v1.0 final and v2.0 final. It's already gone in master. The current way of replacing files is considered confusing by the team because it involves default empty files that you probably don't want to replace like app module / component, and mess with package.json / angular-cli.json etc. It will be rewritten in a smarter way in v2.0 final. |
Can confirm this is not working anymore in beta 31. Works fine in beta 30. |
How can I update a project now that |
Yes, it would be nice if we can get the documentation updated to reflect this change and what the process would be until the fancy new v2 method comes along. I am not familiar with all the cli dependencies and wouldn't know what versions they should all be at to ensure they work together. Although I guess I could just |
I've installed v1.0.0-beta.30 for now like @bastibense suggested. |
Ran into the same issue with beta.31. If My angular-cli-based projects do not all have the same pre-update cli version (I would mostly migrate from beta.26) . I.p., if beta.30 was the last one to support the "traditional" migration approach, it seems I am now forced to
Is this really the suggested approach? |
I ended up creating a blank project from the base-app template repository (the one I assume the init script will clone as a basis). Then I diffed the package.json by hand to make the required adjustment. |
I did the same as @bastibense. So far so good. It's really annoying though and I hope this is not the new flow to update existing projects. I know it's still in beta but you can't expect users to only make new projects with Angular CLI. Some of us have existing projects we want to keep as much in sync as possible with the latest Angular version. |
We're removed |
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. |
After updating angular cli as mention on github
when i do ng update ???
what to do next if i press Enter
it comes like this
and doing again ng update
same result show
The text was updated successfully, but these errors were encountered: