Angular 6:npm 错误!安装 angular cdk 时从未调用 cb() [英] Angular 6: npm ERR! cb() never called when installing angular cdk

查看:37
本文介绍了Angular 6:npm 错误!安装 angular cdk 时从未调用 cb()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里安装角材料,这就是我所做的

I am installing angular material here is what I have done

Angular material 通过以下命令成功安装

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 material 之后发生的,所以现在我正在尝试再次安装它,

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

这篇关于Angular 6:npm 错误!安装 angular cdk 时从未调用 cb()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆