角度6:npm错误!安装角度cdk时从未调用过cb() [英] Angular 6: npm ERR! cb() never called when installing angular cdk
本文介绍了角度6:npm错误!安装角度cdk时从未调用过cb()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要在这里安装角材
通过以下命令成功安装角材料
Angular material successfull installed by the following command
1.npm install --save @angular/material
使用以下命令无法安装Angula CDK
Angula CDK fail to install by using the following command
1.npm install --save @angular/cdk
我在cmd中遇到以下错误:
I get the following error in 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材料之后发生的,所以现在我尝试再次安装它,
Fo reference I never had this problem, this happend after I uninstalled the cdk and angular material so now I am trying to install it again ,
我需要做些什么来解决这个问题?
what do I need to do to solve this problem?
推荐答案
在谷歌搜索之后,这是我找到的解决方法
After googling here is the solution i found
npm cache clean --force
这篇关于角度6:npm错误!安装角度cdk时从未调用过cb()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文