Title: ng update @angular/cli fails · Issue #10644 · angular/angular-cli · GitHub
Open Graph Title: ng update @angular/cli fails · Issue #10644 · angular/angular-cli
X Title: ng update @angular/cli fails · Issue #10644 · angular/angular-cli
Description: ng update @angular/cli Updating karma configuration Updating configuration Removing old config file (.angular-cli.json) Writing config file (angular.json) Some configuration options have been changed, please make sure to update any npm s...
Open Graph Description: ng update @angular/cli Updating karma configuration Updating configuration Removing old config file (.angular-cli.json) Writing config file (angular.json) Some configuration options have been chang...
X Description: ng update @angular/cli Updating karma configuration Updating configuration Removing old config file (.angular-cli.json) Writing config file (angular.json) Some configuration options have been chang...
Opengraph URL: https://github.com/angular/angular-cli/issues/10644
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng update @angular/cli fails","articleBody":"```\r\nng update @angular/cli\r\n Updating karma configuration\r\n Updating configuration\r\n Removing old config file (.angular-cli.json)\r\n Writing config file (angular.json)\r\n Some configuration options have been changed, please make sure to update any npm scripts which you may have modified.\r\nDELETE .angular-cli.json\r\nCREATE angular.json (4068 bytes)\r\nUPDATE karma.conf.js (1848 bytes)\r\nUPDATE package.json (4947 bytes)\r\nUPDATE tslint.json (2637 bytes)\r\nerror An unexpected error occurred: \"/Users/et2448/projects/tac/jfr/tac-jfr-js-client/package.json: Unexpected string in JSON at position 4756\".\r\nPackage install failed, see above.\r\n```\r\n\r\n\u003c!--\r\nWe will close this issue if you don't provide the needed information.\r\nFor feature requests, delete the form below and describe the requirements and use case.\r\n--\u003e\r\n\r\n### Versions\r\n```\r\nng --version\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n \r\n\r\nAngular CLI: 6.0.0\r\nNode: 9.11.1\r\nOS: darwin x64\r\nAngular: 6.0.0\r\n... animations, cdk, cli, common, compiler, compiler-cli, core\r\n... forms, http, language-service, material, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n\r\nPackage Version\r\n------------------------------------------------------\r\n@angular-devkit/architect 0.6.0\r\n@angular-devkit/core 0.6.0\r\n@angular-devkit/schematics 0.6.0\r\n@angular/flex-layout 6.0.0-beta.15\r\n@schematics/angular 0.6.0\r\n@schematics/update 0.6.0\r\nrxjs 6.1.0\r\ntypescript 2.7.2\r\n\r\nnode --version\r\nv9.11.1\r\n```\r\n\r\n### Repro steps\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n--\u003e\r\n* Step 1\r\n* Step 2\r\n* Step 3\r\n\r\n\r\n### Observed behavior\r\n```\r\nng update @angular/cli\r\n Updating karma configuration\r\n Updating configuration\r\n Removing old config file (.angular-cli.json)\r\n Writing config file (angular.json)\r\n Some configuration options have been changed, please make sure to update any npm scripts which you may have modified.\r\nDELETE .angular-cli.json\r\nCREATE angular.json (4068 bytes)\r\nUPDATE karma.conf.js (1848 bytes)\r\nUPDATE package.json (4947 bytes)\r\nUPDATE tslint.json (2637 bytes)\r\nerror An unexpected error occurred: \"/Users/et2448/projects/tac/jfr/tac-jfr-js-client/package.json: Unexpected string in JSON at position 4756\".\r\nPackage install failed, see above.\r\n\r\n\r\nNote that it generates wrong json syntax in the migration step:\r\n\r\ngit diff package.json\r\ndiff --git a/package.json b/package.json\r\nindex 4183866..f499466 100644\r\n--- a/package.json\r\n+++ b/package.json\r\n@@ -96,8 +96,9 @@\r\n \"ts-node\": \"4.1.0\",\r\n \"tslint\": \"^5.10.0\",\r\n \"tslint-sonarts\": \"^1.6.0\",\r\n- \"typescript\": \"~2.7.2\"\r\n- },\r\n+ \"typescript\": \"~2.7.2,\" \u003c-- comma inside hyphen, not after\r\n+ \"@angular-devkit/build-angular\": \"~0.6.0\"\r\n+ },\r\n \"_doc\": \"need to force consistent version due to transitive dep from ngx-configure:\",\r\n \"resolutions\": {\r\n \"@angular/core\": \"6.0.0\"\r\n\r\n\r\n```\r\n\r\n### Desired behavior\r\nng update should proceed and update package.json and generate my \r\nangular.json file etc\r\n","author":{"url":"https://github.com/davidkarlsen","@type":"Person","name":"davidkarlsen"},"datePublished":"2018-05-04T15:51:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/10644/angular-cli/issues/10644"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:184502e7-3026-d2e9-ac3c-614c3d5ad012 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1F6:3579A9:245518:319428:6982400F |
| html-safe-nonce | 02f4ca38d8ac3957659d66d23f27f0cbfe1835519749cb431a4fc78341ea2be6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUY2OjM1NzlBOToyNDU1MTg6MzE5NDI4OjY5ODI0MDBGIiwidmlzaXRvcl9pZCI6IjIwNzI4NzEwMDU0NTc2MjkxOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b44556286803c3ab6c4e592af463bf641fceb4aa1cca8a862735e07ee4142746 |
| hovercard-subject-tag | issue:320327431 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/10644/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fd4e70683bc137d6ebf5165a725ec2cf19483bd3f9f736be00b3d8da25d77ea/angular/angular-cli/issues/10644 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fd4e70683bc137d6ebf5165a725ec2cf19483bd3f9f736be00b3d8da25d77ea/angular/angular-cli/issues/10644 |
| og:image:alt | ng update @angular/cli Updating karma configuration Updating configuration Removing old config file (.angular-cli.json) Writing config file (angular.json) Some configuration options have been chang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidkarlsen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9135c12c87e8ba63197821abe054b7c0a2842a97636ee220df564bb0788e556d |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 43c4df4df458d3c3f6a23d91be88780178a97bdc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width