You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
ng new foo
ng g m bar
ng g m bar --routing
The log given by the failure.
Normally this include a stack trace and some more information.
foo (master*) » ng g m bar
installing module
create src/app/bar/bar.module.ts
foo (master*) » ng g m bar --routing
installing module
? Overwrite src/app/bar/bar.module.ts? Yes, overwrite
Mention any other details that might be useful.
I would expect the file to be overwrote to enable routing. I would also expect to have other files to be generated that would have been generated using ng g m bar --routing.
I believe I am running into something similar when I updated to @angular/cli: 1.0.0-beta.31. It "seems" the cli thinks it is install globally, ie: if i create a new empty folder on my desktop and run "ng new testapp": I get the message "You cannot use the new command inside an Angular CLI project.". Now this is a brand new empty folder.
When I go back to my previously working angular app, run the angular-cli upgrade and I run "ng update" I get:
ng update
installing ng2
? Overwrite README.md? (yndH)
When I hit any of the buttons, nothing happens and the process just seems to fail silently. No error messages.
Update:
Disregard my above comments... What I discovered was that I had a package.json file laying on my desktop that was getting picked up within the folder.
My problems appear to be all fixed. On a side note, I utilized the ng new angular --ng4 on @angular/cli: 1.0.0-beta.31, migrated all of my stuff over to this install and everything is working as expected.
Activity
zahlprish commentedon Feb 13, 2017
I believe I am running into something similar when I updated to @angular/cli: 1.0.0-beta.31. It "seems" the cli thinks it is install globally, ie: if i create a new empty folder on my desktop and run "ng new testapp": I get the message "You cannot use the new command inside an Angular CLI project.". Now this is a brand new empty folder.When I go back to my previously working angular app, run the angular-cli upgrade and I run "ng update" I get:When I hit any of the buttons, nothing happens and the process just seems to fail silently. No error messages.My ng --version:
Update:
Disregard my above comments... What I discovered was that I had a package.json file laying on my desktop that was getting picked up within the folder.
My problems appear to be all fixed. On a side note, I utilized the
ng new angular --ng4on @angular/cli: 1.0.0-beta.31, migrated all of my stuff over to this install and everything is working as expected.fix(@angular/cli): fix issue with console prompt bailing early
fix(@angular/cli): fix issue with console prompt bailing early
fix(@angular/cli): fix issue with console prompt bailing early
fix(@angular/cli): fix issue with console prompt bailing early
fix(@angular/cli): fix issue with console prompt bailing early
fix(@angular/cli): fix issue with console prompt bailing early (#5218)
fix(@angular/cli): fix issue with console prompt bailing early (angul…
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(@angular/cli): fix issue with console prompt bailing early (angul…