{"action":"closed","issue":{"url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3278","repository_url":"https://api.github.com/repos/ionic-team/ionic-cli","labels_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3278/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3278/comments","events_url":"https://api.github.com/repos/ionic-team/ionic-cli/issues/3278/events","html_url":"https://github.com/ionic-team/ionic-cli/issues/3278","id":328395923,"node_id":"MDU6SXNzdWUzMjgzOTU5MjM=","number":3278,"title":"Getting ZlibError for cordova / cordova plugin integration","user":{"login":"dearfog","id":20133049,"node_id":"MDQ6VXNlcjIwMTMzMDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/20133049?v=4","gravatar_id":"","url":"https://api.github.com/users/dearfog","html_url":"https://github.com/dearfog","followers_url":"https://api.github.com/users/dearfog/followers","following_url":"https://api.github.com/users/dearfog/following{/other_user}","gists_url":"https://api.github.com/users/dearfog/gists{/gist_id}","starred_url":"https://api.github.com/users/dearfog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dearfog/subscriptions","organizations_url":"https://api.github.com/users/dearfog/orgs","repos_url":"https://api.github.com/users/dearfog/repos","events_url":"https://api.github.com/users/dearfog/events{/privacy}","received_events_url":"https://api.github.com/users/dearfog/received_events","type":"User","site_admin":false},"labels":[{"id":846421799,"node_id":"MDU6TGFiZWw4NDY0MjE3OTk=","url":"https://api.github.com/repos/ionic-team/ionic-cli/labels/triage","name":"triage","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-01T06:24:38Z","updated_at":"2018-07-12T16:09:35Z","closed_at":"2018-07-12T16:09:35Z","author_association":"NONE","body":"**Description:**\r\n<!-- Please describe the problem you're having. -->\r\n\r\nI love ionic and i am working on an application as i update ionic cli i am facing this error **everytime** as i create new project or add plugin to existing project\r\n\r\n> ZlibError: zlib: unexpected end of file\r\n    at Zlib.(anonymous function).onerror (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:131:21)\r\n\r\nI have ionic 4.0.0-rc.6\r\n```\r\nnasiruddin@nasiruddin-PC:/$ ionic -v\r\n4.0.0-rc.6\r\n\r\n```\r\n\r\n\r\n**Steps to Reproduce:**\r\n<!--\r\nIf applicable, the best way to illustrate the bug is with an example repo.\r\nOtherwise, please describe in detail how to replicate the issue.\r\n-->\r\n\r\n - Update  Angular Cli to 6\r\n\r\n```\r\n\r\nnasiruddin@nasiruddin-PC:/$ ng -v\r\n\r\n     _                      _                 ____ _     ___\r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n    \r\n\r\nAngular CLI: 6.0.1\r\nNode: 10.1.0\r\nOS: linux x64\r\nAngular: \r\n... \r\n\r\nPackage                      Version\r\n------------------------------------------------------\r\n@angular-devkit/architect    0.6.1\r\n@angular-devkit/core         0.6.1\r\n@angular-devkit/schematics   0.6.1\r\n@schematics/angular          0.6.1\r\n@schematics/update           0.6.1\r\nrxjs                         6.1.0\r\ntypescript                   2.7.2\r\n    \r\n```\r\n**My `ionic info`:**\r\n\r\n```\r\nnasiruddin@nasiruddin-PC:/$ ionic info\r\n[WARN] You are not in an Ionic project directory. Project context may be missing.\r\ncli packages: (/usr/lib/node_modules)\r\n\r\n   @ionic/cli-utils  : 2.0.0-rc.6\r\n   ionic (Ionic CLI) : 4.0.0-rc.6\r\n\r\nSystem:\r\n\r\n   NodeJS : v10.1.0\r\n   npm    : 6.1.0\r\n   OS     : Linux 4.13\r\n\r\n```\r\n\r\n**Output:**\r\n<!--\r\nIf applicable, please post the full output of the command that errored.\r\nRemember to run commands with the --verbose flag for debug statements.\r\n-->\r\n \r\n<!--\r\nPost the output of running `ionic info` (within your project, if applicable)\r\nbelow. `ionic info` is a CLI command that prints out environment information.\r\n-->\r\n\r\n```\r\nnasiruddin@nasiruddin-PC:/$ ionic start test123\r\n\r\nWhat type of project would you like to create?\r\n\r\nWe recommend ionic-angular. To learn more about project types, see the CLI documentation[1]. To bypass this prompt next \r\ntime, supply the --type option.\r\n\r\n[1]: https://ionicframework.com/docs/cli/starters.html\r\n\r\n? Project type: ionic-angular\r\n\r\nLet's pick the perfect starter template! 💪\r\n\r\nStarter templates are ready-to-go Ionic apps that come packed with everything you need to build your app. To bypass this \r\nprompt next time, supply template, the second argument to ionic start.\r\n\r\n? Starter template: tabs\r\n✔ Preparing directory ./test123 - done!\r\n✔ Downloading and extracting tabs starter - done!\r\n? Would you like to integrate your new app with Cordova to target native iOS and Android? Yes\r\n> ionic integrations enable cordova --quiet\r\n⠧ Downloading integration cordova (76.26%) \r\nevents.js:167\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nZlibError: zlib: unexpected end of file\r\n    at Zlib.(anonymous function).onerror (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:131:21)\r\n    at Unzip.write (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:255:31)\r\n    at Unzip.flush (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:222:10)\r\n    at Unzip.end (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:229:10)\r\n    at Unpack.end (/usr/lib/node_modules/ionic/node_modules/tar/lib/parse.js:415:21)\r\n    at IncomingMessage.onend (_stream_readable.js:631:10)\r\n    at Object.onceWrapper (events.js:273:13)\r\n    at IncomingMessage.emit (events.js:187:15)\r\n    at endReadableNT (_stream_readable.js:1086:12)\r\n    at process._tickCallback (internal/process/next_tick.js:63:19)\r\nEmitted 'error' event at:\r\n    at Unpack.onerror (_stream_readable.js:693:12)\r\n    at Unpack.emit (events.js:182:13)\r\n    at Unpack.abort (/usr/lib/node_modules/ionic/node_modules/tar/lib/parse.js:266:10)\r\n    at Unzip.(anonymous function).on.er (/usr/lib/node_modules/ionic/node_modules/tar/lib/parse.js:293:16)\r\n    at Unzip.emit (events.js:182:13)\r\n    at Unzip.emit (/usr/lib/node_modules/ionic/node_modules/minipass/index.js:309:30)\r\n    at Zlib.(anonymous function).onerror (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:132:12)\r\n    at Unzip.write (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:255:31)\r\n    at Unzip.flush (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:222:10)\r\n    at Unzip.end (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:229:10)\r\n```\r\n -  Then i created a blank project and tried to add plugin so it started to download **Codova** again error occurred \r\n\r\n```\r\nnasiruddin@nasiruddin-PC:~/projectOne$ ionic cordova plugin add cordova-plugin-fcm\r\n> ionic integrations enable cordova\r\n⠹ Downloading integration cordova (88.95%) \r\nevents.js:167\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nZlibError: zlib: unexpected end of file\r\n    at Zlib.(anonymous function).onerror (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:131:21)\r\n    at Unzip.write (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:255:31)\r\n    at Unzip.flush (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:222:10)\r\n    at Unzip.end (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:229:10)\r\n    at Unpack.end (/usr/lib/node_modules/ionic/node_modules/tar/lib/parse.js:415:21)\r\n    at IncomingMessage.onend (_stream_readable.js:631:10)\r\n    at Object.onceWrapper (events.js:273:13)\r\n    at IncomingMessage.emit (events.js:187:15)\r\n    at endReadableNT (_stream_readable.js:1086:12)\r\n    at process._tickCallback (internal/process/next_tick.js:63:19)\r\nEmitted 'error' event at:\r\n    at Unpack.onerror (_stream_readable.js:693:12)\r\n    at Unpack.emit (events.js:182:13)\r\n    at Unpack.abort (/usr/lib/node_modules/ionic/node_modules/tar/lib/parse.js:266:10)\r\n    at Unzip.(anonymous function).on.er (/usr/lib/node_modules/ionic/node_modules/tar/lib/parse.js:293:16)\r\n    at Unzip.emit (events.js:182:13)\r\n    at Unzip.emit (/usr/lib/node_modules/ionic/node_modules/minipass/index.js:309:30)\r\n    at Zlib.(anonymous function).onerror (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:132:12)\r\n    at Unzip.write (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:255:31)\r\n    at Unzip.flush (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:222:10)\r\n    at Unzip.end (/usr/lib/node_modules/ionic/node_modules/minizlib/index.js:229:10)\r\n\r\n```\r\n\r\n\r\n\r\n\r\n**Other Information:**\r\n<!--\r\ne.g. stacktraces, related issues, suggestions how to fix, stackoverflow links,\r\nforum links, etc\r\n-->\r\n**Package.json** of an existing project in which i want to add plugin .\r\n\r\n```\r\n{\r\n  \"name\": \"projectOne\",\r\n  \"version\": \"0.0.1\",\r\n  \"author\": \"Ionic Framework\",\r\n  \"homepage\": \"http://ionicframework.com/\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"clean\": \"ionic-app-scripts clean\",\r\n    \"build\": \"ionic-app-scripts build\",\r\n    \"lint\": \"ionic-app-scripts lint\",\r\n    \"ionic:build\": \"ionic-app-scripts build\",\r\n    \"ionic:serve\": \"ionic-app-scripts serve\"\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/animations\": \"5.2.10\",\r\n    \"@angular/cdk\": \"^5.2.4\",\r\n    \"@angular/common\": \"5.2.10\",\r\n    \"@angular/compiler\": \"5.2.10\",\r\n    \"@angular/compiler-cli\": \"5.2.10\",\r\n    \"@angular/core\": \"5.2.10\",\r\n    \"@angular/forms\": \"5.2.10\",\r\n    \"@angular/http\": \"5.2.10\",\r\n    \"@angular/material\": \"^5.2.4\",\r\n    \"@angular/platform-browser\": \"5.2.10\",\r\n    \"@angular/platform-browser-dynamic\": \"5.2.10\",\r\n    \"@ionic-native/camera\": \"4.3.3\",\r\n    \"@ionic-native/core\": \"4.7.0\",\r\n    \"@ionic-native/splash-screen\": \"4.7.0\",\r\n    \"@ionic-native/status-bar\": \"4.7.0\",\r\n    \"@ionic/pro\": \"1.0.20\",\r\n    \"@ionic/storage\": \"2.1.3\",\r\n    \"@ngx-translate/core\": \"8.0.0\",\r\n    \"@ngx-translate/http-loader\": \"^2.0.0\",\r\n    \"ionic-angular\": \"3.9.2\",\r\n    \"ionicons\": \"3.0.0\",\r\n    \"rxjs\": \"5.5.11\",\r\n    \"sw-toolbox\": \"3.6.0\",\r\n    \"zone.js\": \"0.8.26\"\r\n  },\r\n  \"config\": {\r\n    \"ionic_copy\": \"./config/config.js\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@ionic/app-scripts\": \"3.1.9\",\r\n    \"typescript\": \"~2.6.2\"\r\n  },\r\n  \"description\": \"An Ionic project\"\r\n}\r\n\r\n```\r\n\r\nPlease let me know if anything i am missing coz i have search SO and did lots of google then i am posting it bug. This is my first issue posting so beg beg my pardon. Happy Coding!!"}}
{"actor":{"display_login":"dwieeb"}}