zlib error when I try to install node packeges

D. Ahmed

I have Probleme with installing new packages with npm after I did an npm update with this commande : npm install -g npm@latest in order to fix a problem related to install sqlite3 in node_modules of an electron app.

But after whene I try to run the commande of sqlite3 : npm install sqlite3 --save or any other commande to install a new package it give this error:

npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar ENOENT: no such file or directory, chmod 'C:\Users\Ahmed\Desktop\Desktop_stuffs\workspace\terrains\Gestion Ecole\electron-quick-start\node_modules\.staging\sqlite3-2e42d809'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Ahmed\Desktop\Desktop_stuffs\workspace\terrains\Gestion Ecole\electron-quick-start\node_modules\.staging\sax-8976b37c\lib\sax.js'
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN tar zlib: Cannot read property 'length' of null
npm WARN [email protected] requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zlib: Cannot read property 'length' of null
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\rijs.resdir\node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: zlib: Cannot read property 'length' of null

npm ERR! zlib: Cannot read property 'length' of null

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ahmed\AppData\Roaming\npm-cache\_logs\2019-07-31T22_03_39_222Z-debug.log

running npm version gives :

{'electron-quick-start': '1.0.0', 
npm: '6.10.2',                   
ares: '1.13.0',                  
cldr: '32.0',                    
http_parser: '2.7.0',            
icu: '60.1',                     
modules: '59',                   
nghttp2: '1.25.0',               
node: '9.2.0',                   
openssl: '1.0.2m',               
tz: '2017c',                     
unicode: '10.0',                 
uv: '1.16.1',                    
v8: '6.2.414.44-node.11',        
zlib: '1.2.11' }                 
D. Ahmed

I fixed the issue, it was just a compatibility problem between npm and node, I used the last version of npm with an old version of nodes, So I just downloaded the last version of nodes to update it, and the install commands run normally.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Get error when try to install PIL

Error when i try to opendir

Error when I try to install app-debug.apk generated by ionic4, on an mobile

I encounter this error when I try 'pip install StyleFrame', any idea what this error is about?

I get an error when I try to install my project packages with npm i

How do I get a better error message when I try to pip install with an incompatible python version?

I get and error when I try to do pip install

NPM - cant install Packeges

Error: When I try to install any package

Error I get when I try install IDE Anjuta

Why I obtain these error messages when I try to install gem bundler on Ubuntu? (Could not create Makefile)

I get error when try go to backend after to install refinerycms-portfolio

Why I obtain these error messages when I try to install gem bundler on Ubuntu? (Could not create Makefile)

Display error when i try to composer install

I get this error when I try to install

When I try to install vscode, snapd shows error code 400

When I try to do a https post request in node, I get a getaddrinfo ENOTFOUND error

Why I obtain these error messages when I try to install gem bundler on Ubuntu? (Could not create Makefile)

Error when I try to install npm on Ubuntu 17.04

NGINX is giving error when i try to install

Error when try to install pydot in Python

Error When I try to use NPM install package.json file

Why I get error when I try to install pyaudio?

Error when I try install a C kernel for jupyter

Error: Unable to find a match phpmyadmin when i try to install phpmyadmin on centos

Install scrapy ERROR - When I try to install scrapy I get the following error that I do not know how to fix it:

Error when I try to install Dlib with pip. macOS

Error UnhandledPromiseRejectionWarning when I try to launch my Node.js app

Issue when I try to execute npm install