zlib error when creating a new project in angular











up vote
0
down vote

favorite












I am new to angular. I am trying to create a project in angular. I installed node js using the binaries. I also installed angular cli using npm.



C:UsersJETSS>ng new test-app2
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREATE test-app2/angular.json (3795 bytes)
CREATE test-app2/package.json (1316 bytes)
CREATE test-app2/README.md (1025 bytes)
CREATE test-app2/tsconfig.json (408 bytes)
CREATE test-app2/tslint.json (2837 bytes)
CREATE test-app2/.editorconfig (245 bytes)
CREATE test-app2/.gitignore (503 bytes)
CREATE test-app2/src/favicon.ico (5430 bytes)
CREATE test-app2/src/index.html (295 bytes)
CREATE test-app2/src/main.ts (372 bytes)
CREATE test-app2/src/polyfills.ts (3234 bytes)
CREATE test-app2/src/test.ts (642 bytes)
CREATE test-app2/src/styles.css (80 bytes)
CREATE test-app2/src/browserslist (388 bytes)
CREATE test-app2/src/karma.conf.js (964 bytes)
CREATE test-app2/src/tsconfig.app.json (166 bytes)
CREATE test-app2/src/tsconfig.spec.json (256 bytes)
CREATE test-app2/src/tslint.json (314 bytes)
CREATE test-app2/src/assets/.gitkeep (0 bytes)
CREATE test-app2/src/environments/environment.prod.ts (51 bytes)
CREATE test-app2/src/environments/environment.ts (662 bytes)
CREATE test-app2/src/app/app-routing.module.ts (245 bytes)
CREATE test-app2/src/app/app.module.ts (393 bytes)
CREATE test-app2/src/app/app.component.html (1173 bytes)
CREATE test-app2/src/app/app.component.spec.ts (1104 bytes)
CREATE test-app2/src/app/app.component.ts (213 bytes)
CREATE test-app2/src/app/app.component.css (0 bytes)
CREATE test-app2/e2e/protractor.conf.js (752 bytes)
CREATE test-app2/e2e/tsconfig.e2e.json (213 bytes)
CREATE test-app2/e2e/src/app.e2e-spec.ts (305 bytes)
CREATE test-app2/e2e/src/app.po.ts (208 bytes)
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, fl
atted is its successor.
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file



npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersJETSSAppDataRoamingnpm-cache_logs2018-11-07T08_35_16
_253Z-debug.log
Package install failed, see above.



C:UsersJETSS>



I have highlighted the error in Bold. Also shown below are the details in the log file



3297 verbose stack ZlibError: zlib: unexpected end of file
3297 verbose stack at Zlib.(anonymous function).onerror (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:131:21)
3297 verbose stack at Unzip.write (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:255:31)
3297 verbose stack at Unzip.flush (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:222:10)
3297 verbose stack at Unzip.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:229:10)
3297 verbose stack at Object.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulestarlibparse.js:415:21)
3297 verbose stack at PassThrough.onend (_stream_readable.js:628:10)
3297 verbose stack at Object.onceWrapper (events.js:273:13)
3297 verbose stack at PassThrough.emit (events.js:187:15)
3297 verbose stack at endReadableNT (_stream_readable.js:1094:12)
3297 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)

3298 verbose cwd C:UsersJETSStest-app1



Any clue on what could be the reason?










share|improve this question
























  • Why do you tag asp.net and asp.net-core?
    – Roman Marusyk
    Nov 7 at 20:57












  • I am planning to use this angular project in asp .net core project. I am a .Net developer and when I tried to use the Visual studio angular template for asp .net core it was not working well. So my colleagues asked me to create an angular project using angular CLI and it gave the above error message
    – SARAVAN
    Nov 8 at 5:22















up vote
0
down vote

favorite












I am new to angular. I am trying to create a project in angular. I installed node js using the binaries. I also installed angular cli using npm.



C:UsersJETSS>ng new test-app2
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREATE test-app2/angular.json (3795 bytes)
CREATE test-app2/package.json (1316 bytes)
CREATE test-app2/README.md (1025 bytes)
CREATE test-app2/tsconfig.json (408 bytes)
CREATE test-app2/tslint.json (2837 bytes)
CREATE test-app2/.editorconfig (245 bytes)
CREATE test-app2/.gitignore (503 bytes)
CREATE test-app2/src/favicon.ico (5430 bytes)
CREATE test-app2/src/index.html (295 bytes)
CREATE test-app2/src/main.ts (372 bytes)
CREATE test-app2/src/polyfills.ts (3234 bytes)
CREATE test-app2/src/test.ts (642 bytes)
CREATE test-app2/src/styles.css (80 bytes)
CREATE test-app2/src/browserslist (388 bytes)
CREATE test-app2/src/karma.conf.js (964 bytes)
CREATE test-app2/src/tsconfig.app.json (166 bytes)
CREATE test-app2/src/tsconfig.spec.json (256 bytes)
CREATE test-app2/src/tslint.json (314 bytes)
CREATE test-app2/src/assets/.gitkeep (0 bytes)
CREATE test-app2/src/environments/environment.prod.ts (51 bytes)
CREATE test-app2/src/environments/environment.ts (662 bytes)
CREATE test-app2/src/app/app-routing.module.ts (245 bytes)
CREATE test-app2/src/app/app.module.ts (393 bytes)
CREATE test-app2/src/app/app.component.html (1173 bytes)
CREATE test-app2/src/app/app.component.spec.ts (1104 bytes)
CREATE test-app2/src/app/app.component.ts (213 bytes)
CREATE test-app2/src/app/app.component.css (0 bytes)
CREATE test-app2/e2e/protractor.conf.js (752 bytes)
CREATE test-app2/e2e/tsconfig.e2e.json (213 bytes)
CREATE test-app2/e2e/src/app.e2e-spec.ts (305 bytes)
CREATE test-app2/e2e/src/app.po.ts (208 bytes)
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, fl
atted is its successor.
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file



npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersJETSSAppDataRoamingnpm-cache_logs2018-11-07T08_35_16
_253Z-debug.log
Package install failed, see above.



C:UsersJETSS>



I have highlighted the error in Bold. Also shown below are the details in the log file



3297 verbose stack ZlibError: zlib: unexpected end of file
3297 verbose stack at Zlib.(anonymous function).onerror (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:131:21)
3297 verbose stack at Unzip.write (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:255:31)
3297 verbose stack at Unzip.flush (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:222:10)
3297 verbose stack at Unzip.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:229:10)
3297 verbose stack at Object.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulestarlibparse.js:415:21)
3297 verbose stack at PassThrough.onend (_stream_readable.js:628:10)
3297 verbose stack at Object.onceWrapper (events.js:273:13)
3297 verbose stack at PassThrough.emit (events.js:187:15)
3297 verbose stack at endReadableNT (_stream_readable.js:1094:12)
3297 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)

3298 verbose cwd C:UsersJETSStest-app1



Any clue on what could be the reason?










share|improve this question
























  • Why do you tag asp.net and asp.net-core?
    – Roman Marusyk
    Nov 7 at 20:57












  • I am planning to use this angular project in asp .net core project. I am a .Net developer and when I tried to use the Visual studio angular template for asp .net core it was not working well. So my colleagues asked me to create an angular project using angular CLI and it gave the above error message
    – SARAVAN
    Nov 8 at 5:22













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am new to angular. I am trying to create a project in angular. I installed node js using the binaries. I also installed angular cli using npm.



C:UsersJETSS>ng new test-app2
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREATE test-app2/angular.json (3795 bytes)
CREATE test-app2/package.json (1316 bytes)
CREATE test-app2/README.md (1025 bytes)
CREATE test-app2/tsconfig.json (408 bytes)
CREATE test-app2/tslint.json (2837 bytes)
CREATE test-app2/.editorconfig (245 bytes)
CREATE test-app2/.gitignore (503 bytes)
CREATE test-app2/src/favicon.ico (5430 bytes)
CREATE test-app2/src/index.html (295 bytes)
CREATE test-app2/src/main.ts (372 bytes)
CREATE test-app2/src/polyfills.ts (3234 bytes)
CREATE test-app2/src/test.ts (642 bytes)
CREATE test-app2/src/styles.css (80 bytes)
CREATE test-app2/src/browserslist (388 bytes)
CREATE test-app2/src/karma.conf.js (964 bytes)
CREATE test-app2/src/tsconfig.app.json (166 bytes)
CREATE test-app2/src/tsconfig.spec.json (256 bytes)
CREATE test-app2/src/tslint.json (314 bytes)
CREATE test-app2/src/assets/.gitkeep (0 bytes)
CREATE test-app2/src/environments/environment.prod.ts (51 bytes)
CREATE test-app2/src/environments/environment.ts (662 bytes)
CREATE test-app2/src/app/app-routing.module.ts (245 bytes)
CREATE test-app2/src/app/app.module.ts (393 bytes)
CREATE test-app2/src/app/app.component.html (1173 bytes)
CREATE test-app2/src/app/app.component.spec.ts (1104 bytes)
CREATE test-app2/src/app/app.component.ts (213 bytes)
CREATE test-app2/src/app/app.component.css (0 bytes)
CREATE test-app2/e2e/protractor.conf.js (752 bytes)
CREATE test-app2/e2e/tsconfig.e2e.json (213 bytes)
CREATE test-app2/e2e/src/app.e2e-spec.ts (305 bytes)
CREATE test-app2/e2e/src/app.po.ts (208 bytes)
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, fl
atted is its successor.
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file



npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersJETSSAppDataRoamingnpm-cache_logs2018-11-07T08_35_16
_253Z-debug.log
Package install failed, see above.



C:UsersJETSS>



I have highlighted the error in Bold. Also shown below are the details in the log file



3297 verbose stack ZlibError: zlib: unexpected end of file
3297 verbose stack at Zlib.(anonymous function).onerror (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:131:21)
3297 verbose stack at Unzip.write (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:255:31)
3297 verbose stack at Unzip.flush (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:222:10)
3297 verbose stack at Unzip.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:229:10)
3297 verbose stack at Object.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulestarlibparse.js:415:21)
3297 verbose stack at PassThrough.onend (_stream_readable.js:628:10)
3297 verbose stack at Object.onceWrapper (events.js:273:13)
3297 verbose stack at PassThrough.emit (events.js:187:15)
3297 verbose stack at endReadableNT (_stream_readable.js:1094:12)
3297 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)

3298 verbose cwd C:UsersJETSStest-app1



Any clue on what could be the reason?










share|improve this question















I am new to angular. I am trying to create a project in angular. I installed node js using the binaries. I also installed angular cli using npm.



C:UsersJETSS>ng new test-app2
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREATE test-app2/angular.json (3795 bytes)
CREATE test-app2/package.json (1316 bytes)
CREATE test-app2/README.md (1025 bytes)
CREATE test-app2/tsconfig.json (408 bytes)
CREATE test-app2/tslint.json (2837 bytes)
CREATE test-app2/.editorconfig (245 bytes)
CREATE test-app2/.gitignore (503 bytes)
CREATE test-app2/src/favicon.ico (5430 bytes)
CREATE test-app2/src/index.html (295 bytes)
CREATE test-app2/src/main.ts (372 bytes)
CREATE test-app2/src/polyfills.ts (3234 bytes)
CREATE test-app2/src/test.ts (642 bytes)
CREATE test-app2/src/styles.css (80 bytes)
CREATE test-app2/src/browserslist (388 bytes)
CREATE test-app2/src/karma.conf.js (964 bytes)
CREATE test-app2/src/tsconfig.app.json (166 bytes)
CREATE test-app2/src/tsconfig.spec.json (256 bytes)
CREATE test-app2/src/tslint.json (314 bytes)
CREATE test-app2/src/assets/.gitkeep (0 bytes)
CREATE test-app2/src/environments/environment.prod.ts (51 bytes)
CREATE test-app2/src/environments/environment.ts (662 bytes)
CREATE test-app2/src/app/app-routing.module.ts (245 bytes)
CREATE test-app2/src/app/app.module.ts (393 bytes)
CREATE test-app2/src/app/app.component.html (1173 bytes)
CREATE test-app2/src/app/app.component.spec.ts (1104 bytes)
CREATE test-app2/src/app/app.component.ts (213 bytes)
CREATE test-app2/src/app/app.component.css (0 bytes)
CREATE test-app2/e2e/protractor.conf.js (752 bytes)
CREATE test-app2/e2e/tsconfig.e2e.json (213 bytes)
CREATE test-app2/e2e/src/app.e2e-spec.ts (305 bytes)
CREATE test-app2/e2e/src/app.po.ts (208 bytes)
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, fl
atted is its successor.
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file



npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersJETSSAppDataRoamingnpm-cache_logs2018-11-07T08_35_16
_253Z-debug.log
Package install failed, see above.



C:UsersJETSS>



I have highlighted the error in Bold. Also shown below are the details in the log file



3297 verbose stack ZlibError: zlib: unexpected end of file
3297 verbose stack at Zlib.(anonymous function).onerror (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:131:21)
3297 verbose stack at Unzip.write (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:255:31)
3297 verbose stack at Unzip.flush (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:222:10)
3297 verbose stack at Unzip.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulesminizlibindex.js:229:10)
3297 verbose stack at Object.end (C:UsersJETSSnode-v10.13.0-win-x64node_modulesnpmnode_modulestarlibparse.js:415:21)
3297 verbose stack at PassThrough.onend (_stream_readable.js:628:10)
3297 verbose stack at Object.onceWrapper (events.js:273:13)
3297 verbose stack at PassThrough.emit (events.js:187:15)
3297 verbose stack at endReadableNT (_stream_readable.js:1094:12)
3297 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)

3298 verbose cwd C:UsersJETSStest-app1



Any clue on what could be the reason?







angular






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 8 at 5:35

























asked Nov 7 at 10:15









SARAVAN

4,664153860




4,664153860












  • Why do you tag asp.net and asp.net-core?
    – Roman Marusyk
    Nov 7 at 20:57












  • I am planning to use this angular project in asp .net core project. I am a .Net developer and when I tried to use the Visual studio angular template for asp .net core it was not working well. So my colleagues asked me to create an angular project using angular CLI and it gave the above error message
    – SARAVAN
    Nov 8 at 5:22


















  • Why do you tag asp.net and asp.net-core?
    – Roman Marusyk
    Nov 7 at 20:57












  • I am planning to use this angular project in asp .net core project. I am a .Net developer and when I tried to use the Visual studio angular template for asp .net core it was not working well. So my colleagues asked me to create an angular project using angular CLI and it gave the above error message
    – SARAVAN
    Nov 8 at 5:22
















Why do you tag asp.net and asp.net-core?
– Roman Marusyk
Nov 7 at 20:57






Why do you tag asp.net and asp.net-core?
– Roman Marusyk
Nov 7 at 20:57














I am planning to use this angular project in asp .net core project. I am a .Net developer and when I tried to use the Visual studio angular template for asp .net core it was not working well. So my colleagues asked me to create an angular project using angular CLI and it gave the above error message
– SARAVAN
Nov 8 at 5:22




I am planning to use this angular project in asp .net core project. I am a .Net developer and when I tried to use the Visual studio angular template for asp .net core it was not working well. So my colleagues asked me to create an angular project using angular CLI and it gave the above error message
– SARAVAN
Nov 8 at 5:22

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53187403%2fzlib-error-when-creating-a-new-project-in-angular%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53187403%2fzlib-error-when-creating-a-new-project-in-angular%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()