离子性侧面菜单的安装会导致"zliberror:zlib:文件意外结束". [英] Installation of ionic sidemenu results in "zliberror: zlib: unexpected end of file"
问题描述
我的npm版本:6.4.1节点:10.14.1离子性:4.7.0科尔多瓦:8.1.2(基本上都是最新版本)
My npm version: 6.4.1 node: 10.14.1 Ionic: 4.7.0 Cordova: 8.1.2 (Basically all of them are of the latest version)
当我尝试在特定位置安装离子型侧面菜单时,会发生如下错误:
When I try to install an ionic sidemenu at a specific location, an error occurs as such:
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on
reading Browserslist >3.0 config used in other tools.
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\15432\AppData\Roaming\npm-cache\_logs\2019-01-
12T00_54_51_838Z-debug.log
因此,我导航至日志文档并查看文件末尾:
So I navigate to the log document and have a look on the end of the file:
1474 silly saveTree | +-- path-to-regexp@1.7.0
1474 silly saveTree | | `-- isarray@0.0.1
1474 silly saveTree | `-- serviceworker-cache-polyfill@4.0.0
1474 silly saveTree `-- zone.js@0.8.26
1475 verbose stack ZlibError: zlib: unexpected end of file
1475 verbose stack at Zlib.(anonymous function).onerror (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:131:21)
1475 verbose stack at Unzip.write (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:255:31)
1475 verbose stack at Unzip.flush (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:222:10)
1475 verbose stack at Unzip.end (C:\Program
Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:229:10)
1475 verbose stack at Object.end (C:\Program
Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:415:21)
1475 verbose stack at PassThrough.onend (_stream_readable.js:628:10)
1475 verbose stack at Object.onceWrapper (events.js:273:13)
1475 verbose stack at PassThrough.emit (events.js:187:15)
1475 verbose stack at endReadableNT (_stream_readable.js:1094:12)
1475 verbose stack at process._tickCallback
(internal/process/next_tick.js:63:19)
1476 verbose cwd D:\Coursera Doc\Ionic\conFusion
1477 verbose Windows_NT 10.0.17134
1478 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
1479 verbose node v10.14.1
1480 verbose npm v6.4.1
1481 error code Z_BUF_ERROR
1482 error errno -5
1483 error zlib: unexpected end of file
1484 verbose exit [ -5, true ]
我真的不知道这意味着什么.因此,我尝试键入"npm install"并修复在其中创建我的菜单的子文件夹中的所有问题,并且发生与上述相同的问题.我希望任何人都可以帮助我解决这个问题.
I really have no idea what this means. So I try to type "npm install" and fix all the problems on the subfolder in which I create my sidemenu, and the same issue, as above, occurs. I hope that anyone can help me address this issue.
推荐答案
当连接到 npm
注册表时,此问题似乎是 DNS
问题.
This problem seems to be a DNS
issue when connecting to npm
registry.
请首先检查( https://status.npmjs.org/)以查看是否所有服务正常运行,然后清除您的 npm
缓存.
Please check (https://status.npmjs.org/) first to see if all services are operational then clear your npm
cache.
强制 clean
您的 npm缓存
:
npm cache clean --force
这篇关于离子性侧面菜单的安装会导致"zliberror:zlib:文件意外结束".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!