我正在这里安装角材料,这就是我所做的
通过以下命令成功安装了 Angular 材质
1.npm install --save @angular/material
使用以下命令安装Angula CDK失败
1.npm install --save @angular/cdk
我在cmd中收到以下错误:
npm WARN tar zlib error: unexpected end of file
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Bonge\AppData\Roaming\npm-cache\_logs\2018-07-25T17_44_24_771Z-debug.log
参考我从来没有遇到过这个问题,这是在我卸载了 cdk 和 Angular 材料之后发生的,所以现在我尝试再次安装它,
我需要做什么来解决这个问题?
谷歌搜索后,这是我找到的解决方案
npm cache clean --force
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)