C:\Users\you name>npm cache clean
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\you name\AppData\Roaming\npm-cache\_logs\2019-05-12T07_07_25_826Z-debug.log

解决方案 由于 npm 5 使用了新的包管理模式,所以在升级之后,请先清空一下本地缓存:

npm cache clean --force 。

如果上边没办法解决问题,可以尝试下边的指令:

npm cache clear --force && npm install --no-shrinkwrap --update-binary

最新文章

  1. NOIP2013D1T3货车运输
  2. 12.创建一个Point类,有成员变量x,y,方法getX(),setX(),还有一个构造方 法初始化x和y。创建类主类A来测试它。
  3. css-css权威指南学习笔记3
  4. MSDeploy 同步时不删除原有文件
  5. 【转】win7与VMware ubuntu虚拟机实现文件共享(最后一定要装open-vm-dkms插件)
  6. C#中Spli、正则表达式分解字符串详解
  7. FPGA知识大梳理(二)verilogHDL语法入门(1)
  8. protobuf(Protocol Buffers)java初体验
  9. java静态初始化代码块
  10. FOJ 11月月赛题解
  11. 第二部分----CSS的基础语法
  12. JavaScript代码组织结构良好的5个特点
  13. ZooKeeper-API CURD
  14. Spring设置定时任务时,关于执行时间的规则设置
  15. Linux下常用工具
  16. Inno Setup 系列之安装、卸载前检测进程运行情况并关闭相应进程
  17. 021 RDD的依赖关系,以及造成的stage的划分
  18. (实用)CentOS 6.3更新内置Python2.6
  19. ActiveMQ producer不断发送消息,会导致broker内存耗尽吗?
  20. (转)css选择器及其优先级

热门文章

  1. 如何实现Web页面录屏?
  2. (入门SpringBoot)SpringBoot加接口操作日志好方法(九)
  3. May 19th, 2019. Week 21st, Sunday
  4. DWR服务器推送技术
  5. 漫长的 windows caffe编译过程 (OnlyCpu)
  6. C++ 标准库,可变参数数量,参数类型相同
  7. LeetCode解题笔记 - 20. Valid Parentheses
  8. Java 泛型示例 - 泛型方法,类,接口
  9. Oracle - 如何查找指定字符串所出现的表
  10. GO的执行原理以及GO命令