Click here to Skip to main content
15,887,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i don't know why i am getting this error while creating the angular project

node version :- v10.16.0 Angular CLI version: 8.1.0

<pre><pre>npm WARN tar invalid entry
npm WARN tar invalid entry
npm WARN tar invalid entry
npm WARN tar invalid entry
npm WARN tar invalid entry
npm WARN tar zlib: unexpected end of file
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\anchor.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\big.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\blink.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\bold.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\code-point-at.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\ends-with.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\fixed.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\fontcolor.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\fontsize.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\from-code-point.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\includes.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\italics.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\iterator.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\link.js'
npm WARN tar ENOENT: no such file or directory, open C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\match-all.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\match.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\pad-end.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\pad-start.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\raw.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\repeat.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\replace.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\search.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\small.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\split.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\starts-with.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\strike.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\sub.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\sup.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\trim-end.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\trim-left.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\trim-right.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\trim-start.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\core-js-    feaec756\stable\string\trim.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\less-    ff543e0f\test\less\modifyVars\extended.json'
npm WARN tar ENOENT: no such file or directory, open     'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\less-    ff543e0f\test\less\modifyVars\extended.less'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9     (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or     directory, rename 'C:\Users\Aayush\Desktop\Angular\Angualar-    demo\node_modules\.staging\fsevents-0e01736e\node_modules\abbrev' ->     'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\abbrev-    308b8450'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9     (node_modules\watchpack\node_modules\fsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or     directory, rename 'C:\Users\Aayush\Desktop\Angular\Angualar-    demo\node_modules\.staging\fsevents-86ed389a\node_modules\abbrev' ->     'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\abbrev-    2069536b'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9     (node_modules\karma\node_modules\fsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or     directory, rename 'C:\Users\Aayush\Desktop\Angular\Angualar-    demo\node_modules\.staging\fsevents-3d3d317c\node_modules\ansi-regex' ->     'C:\Users\Aayush\Desktop\Angular\Angualar-demo\node_modules\.staging\ansi-regex-    23ab2cf9'

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:\Users\Aayush\AppData\Roaming\npm-cache\_logs\2019-07-    10T14_12_35_015Z-debug.log
Package install failed, see above.


What I have tried:

npm cache clean --force command => it didnt worked reinstall node js and angular cli and installing again => didn't worked
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900