ng update @angular/cli caused error "unexpected token function"
See original GitHub issueBug Report or Feature Request (mark with an x)
- [ `x`] bug report -> please search issues before submitting
- [ ] feature request
Area
- [ x] devkit
- [ ] schematics
Versions
node --version = v6.11.3
npm --version = 3.10.10
Angular CLI: 6.0.8 Node: 6.11.3 OS: win32 x64 Angular: 4.4.7 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router, tsc-wrapped
Package Version
@angular-devkit/architect 0.6.8 @angular-devkit/core 0.6.8 @angular-devkit/schematics 0.6.8 @angular/cli 6.0.8 @schematics/angular 0.6.8 @schematics/update 0.6.8 rxjs 5.5.11 typescript 2.3.4
Repro steps
I was trying to generate the service in my project created today with name JWTLogin.
ng g s security/security
it gives me error "cannot read property ‘nulllogger’ of undefined " to solve this i updated the project with latest cli.
npm install --save @angular/cli@latest
after this when i entered below command
ng update @angular/cli
causes the below error in console window
The log given by the failure
Desired functionality
Mention any other details that might be useful
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:5 (1 by maintainers)
Top Related StackOverflow Question
upgrading to node8 fixed it for me. Details about actual error would definitely be helpful.
Luckily i found update guide (https://update.angular.io/) which says we have to update to Node8 or later before running ng update
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.