{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/5654","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/5654/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/5654/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/5654/events","html_url":"https://github.com/angular/angular-cli/issues/5654","id":217000672,"number":5654,"title":"The \"@angular/compiler-cli\" package was not properly installed.","user":{"login":"rfball","id":5924062,"avatar_url":"https://avatars1.githubusercontent.com/u/5924062?v=3","gravatar_id":"","url":"https://api.github.com/users/rfball","html_url":"https://github.com/rfball","followers_url":"https://api.github.com/users/rfball/followers","following_url":"https://api.github.com/users/rfball/following{/other_user}","gists_url":"https://api.github.com/users/rfball/gists{/gist_id}","starred_url":"https://api.github.com/users/rfball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfball/subscriptions","organizations_url":"https://api.github.com/users/rfball/orgs","repos_url":"https://api.github.com/users/rfball/repos","events_url":"https://api.github.com/users/rfball/events{/privacy}","received_events_url":"https://api.github.com/users/rfball/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2017-03-25T20:11:14Z","updated_at":"2017-04-09T03:55:11Z","closed_at":"2017-03-26T23:20:57Z","body":"[X ] bug report -> please search issues before submitting\r\n```\r\n\r\n**Versions.**\r\n@angular/cli: 1.0.0\r\nnode: 7.1.0\r\nos: win32 x64\r\n@angular/common: 2.1.2\r\n@angular/compiler: 2.1.2\r\n@angular/core: 2.1.2\r\n@angular/forms: 2.1.2\r\n@angular/http: 2.1.2\r\n@angular/platform-browser: 2.1.2\r\n@angular/platform-browser-dynamic: 2.1.2\r\n@angular/router: 3.1.2\r\n@angular/cli: 1.0.0\r\n\r\n\r\n**Repro steps.**\r\n\r\nrun ng serve\r\n\r\n\r\n\r\n**The log given by the failure.**\r\n\r\n$ ng serve --verbose\r\nThe \"@angular/compiler-cli\" package was not properly installed.\r\nError: The \"@angular/compiler-cli\" package was not properly installed.\r\n    at Object.<anonymous> (C:\\Users\\rball\\Documents\\Dev\\Angular\\change-detection\\node_modules\\@ngtools\\webpack\\src\\index.js:16:11)\r\n    at Module._compile (module.js:573:32)\r\n    at Object.Module._extensions..js (module.js:582:10)\r\n    at Module.load (module.js:490:32)\r\n    at tryModuleLoad (module.js:449:12)\r\n    at Function.Module._load (module.js:441:3)\r\n    at Module.require (module.js:500:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (C:\\Users\\rball\\Documents\\Dev\\Angular\\change-detection\\node_modules\\@angular\\cli\\tasks\\eject.js:10:19)\r\n    at Module._compile (module.js:573:32)\r\n    at Object.Module._extensions..js (module.js:582:10)\r\n    at Module.load (module.js:490:32)\r\n    at tryModuleLoad (module.js:449:12)\r\n    at Function.Module._load (module.js:441:3)\r\n    at Module.require (module.js:500:17)\r\n    at require (internal/module.js:20:19)\r\n\r\n\r\n**### Desired functionality.**\r\nLaunch ng serve without error\r\n\r\n\r\n**### Mention any other details that might be useful.**\r\nHave updated project and environment per \"https://github.com/angular/angular-cli#updating-angular-cli\"\r\n\r\nSee also http://stackoverflow.com/questions/42925690/angular2-cli-error-angular-compiler-cli-package-was-not-properly-installed/43021209#43021209\r\n\r\nPackage.json\r\n\r\n{\r\n  \"name\": \"change-detection\",\r\n  \"version\": \"0.0.0\",\r\n  \"license\": \"MIT\",\r\n  \"@angular/cli\": {\"version\": \"1.0.0\"},\r\n  \"scripts\": {\r\n    \"start\": \"ng serve\",\r\n    \"lint\": \"tslint \\\"src/**/*.ts\\\"\",\r\n    \"test\": \"ng test\",\r\n    \"pree2e\": \"webdriver-manager update\",\r\n    \"e2e\": \"protractor\"\r\n  },\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"@angular/common\": \"~2.1.0\",\r\n    \"@angular/compiler\": \"~2.1.0\",\r\n    \"@angular/core\": \"~2.1.0\",\r\n    \"@angular/forms\": \"~2.1.0\",\r\n    \"@angular/http\": \"~2.1.0\",\r\n    \"@angular/platform-browser\": \"~2.1.0\",\r\n    \"@angular/platform-browser-dynamic\": \"~2.1.0\",\r\n    \"@angular/router\": \"~3.1.0\",\r\n    \"core-js\": \"^2.4.1\",\r\n    \"rxjs\": \"5.0.0-beta.12\",\r\n    \"ts-helpers\": \"^1.1.1\",\r\n    \"zone.js\": \"^0.6.23\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@angular/cli\": \"^1.0.0\",\r\n    \"@types/jasmine\": \"^2.2.30\",\r\n    \"@types/node\": \"^6.0.42\",\r\n    \"codelyzer\": \"1.0.0-beta.1\",\r\n    \"jasmine-core\": \"2.4.1\",\r\n    \"jasmine-spec-reporter\": \"2.5.0\",\r\n    \"karma\": \"1.2.0\",\r\n    \"karma-chrome-launcher\": \"^2.0.0\",\r\n    \"karma-cli\": \"^1.0.1\",\r\n    \"karma-jasmine\": \"^1.0.2\",\r\n    \"karma-remap-istanbul\": \"^0.2.1\",\r\n    \"protractor\": \"4.0.9\",\r\n    \"ts-node\": \"1.2.1\",\r\n    \"tslint\": \"3.13.0\",\r\n    \"typescript\": \"~2.0.3\",\r\n    \"webdriver-manager\": \"10.2.5\"\r\n  }\r\n}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/292762221","html_url":"https://github.com/angular/angular-cli/issues/5654#issuecomment-292762221","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/5654","id":292762221,"user":{"login":"kylecordes","id":8799,"avatar_url":"https://avatars0.githubusercontent.com/u/8799?v=3","gravatar_id":"","url":"https://api.github.com/users/kylecordes","html_url":"https://github.com/kylecordes","followers_url":"https://api.github.com/users/kylecordes/followers","following_url":"https://api.github.com/users/kylecordes/following{/other_user}","gists_url":"https://api.github.com/users/kylecordes/gists{/gist_id}","starred_url":"https://api.github.com/users/kylecordes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylecordes/subscriptions","organizations_url":"https://api.github.com/users/kylecordes/orgs","repos_url":"https://api.github.com/users/kylecordes/repos","events_url":"https://api.github.com/users/kylecordes/events{/privacy}","received_events_url":"https://api.github.com/users/kylecordes/received_events","type":"User","site_admin":false},"created_at":"2017-04-09T03:55:11Z","updated_at":"2017-04-09T03:55:11Z","body":"This error happens from the following chunk of code:\r\n\r\nhttps://github.com/angular/angular-cli/blob/master/packages/%40ngtools/webpack/src/index.ts#L8\r\n\r\nThis code is not ideal. It assumes that if anything went wrong, it is because the user didn't install the right thing. Preferably it would look at the actual error more and try to give a more helpful error message. A stack overflow answer:\r\n\r\nhttp://stackoverflow.com/questions/42925690/angular2-cli-error-angular-compiler-cli-package-was-not-properly-installed/43021209#43021209\r\n\r\nSuggest that the actual underlying problem is that some version of the package might not expose a VERSION symbol; but I have not investigated whether this is actually true.\r\n\r\nStill, more defensive and specific error handling would help when things like this happen.\r\n\r\n"}}
{"actor":{"display_login":"kylecordes"}}