Code Z_BUF_ERROR Npm ERR! Errno -5 In Installing Native Base

Skip to content Dismiss alert {{ message }} / NativeBase Public
  • Notifications You must be signed in to change notification settings
  • Fork 2.4k
  • Star 20.4k
  • Code
  • Issues 283
  • Pull requests 96
  • Discussions
  • Actions
  • Projects
  • Security
  • Insights
Additional navigation options code Z_BUF_ERROR npm ERR! errno -5 in installing native base #2319New issueNew issueClosedClosedcode Z_BUF_ERROR npm ERR! errno -5 in installing native base#2319@im-noob

Description

@im-noobim-noobopened on Oct 1, 2018

i got the error in when im tring to installing native base...

i have gone through https://github.com/GeekyAnts/NativeBase#4-getting-started

but when i fire the command npm install native-base --save

i get this error 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\noob\AppData\Roaming\npm-cache_logs\2018-10-01T07_36_41_947Z-debug.log

https://i.imgur.com/PedZOkj.png image

Here is the complete log

0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'native-base', 1 verbose cli '--save' ] 2 info using [email protected] 3 info using [email protected] 4 verbose npm-session 6604468b8b80082b 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://registry.npmjs.org/native-base 769ms (from cache) 8 http fetch GET 304 https://registry.npmjs.org/native-base/-/native-base-2.8.0.tgz 390ms (from cache) 9 silly fetchPackageMetaData error for native-base@latest zlib: unexpected end of file 10 timing stage:rollbackFailedOptional Completed in 9ms 11 timing stage:runTopLevelLifecycles Completed in 9609ms 12 verbose stack ZlibError: zlib: unexpected end of file 12 verbose stack at Zlib.(anonymous function).onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:131:21) 12 verbose stack at Unzip.write (C:\Program Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:255:31) 12 verbose stack at Unzip.flush (C:\Program Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:222:10) 12 verbose stack at Unzip.end (C:\Program Files\nodejs\node_modules\npm\node_modules\minizlib\index.js:229:10) 12 verbose stack at Object.end (C:\Program Files\nodejs\node_modules\npm\node_modules\tar\lib\parse.js:415:21) 12 verbose stack at PassThrough.onend (_stream_readable.js:628:10) 12 verbose stack at Object.onceWrapper (events.js:273:13) 12 verbose stack at PassThrough.emit (events.js:187:15) 12 verbose stack at endReadableNT (_stream_readable.js:1085:12) 12 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19) 13 verbose cwd C:\fr2\react\LibSearch\WithBaseTry2 14 verbose Windows_NT 10.0.10240 15 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "native-base" "--save" 16 verbose node v10.9.0 17 verbose npm v6.2.0 18 error code Z_BUF_ERROR 19 error errno -5 20 error zlib: unexpected end of file 21 verbose exit [ -5, true ]

node:v10.9.0 , npm:6.2.0, expo CLI:2.2.0 version

##package.json

{ "expo": { "name": "WithBaseTry2", "description": "This project is really great.", "slug": "WithBaseTry2", "privacy": "public", "sdkVersion": "30.0.0", "platforms": ["ios", "android"], "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "splash": { "image": "./assets/splash.png", "resizeMode": "contain", "backgroundColor": "#ffffff" }, "updates": { "fallbackToCacheTimeout": 0 }, "assetBundlePatterns": [ "**/*" ], "ios": { "supportsTablet": true } } } #ok I solved this problem by using yarn `yarn add react-navigation ` but im still getting error when i m pressing npm install the same error as that i mentioned above.. ## but now im facing the another problem when i start expo by pressing command 'expo start' ` 12:21 Opening on Android device ERROR 12:21 Cannot find entry file node_modules/react-native-scripts/build/bin/crna-entry.js in any of the roots: ["C:\\fr2\\react\\LibSearch\\WithBaseTry2"] ERROR 12:21 Building JavaScript bundle: error` ![image](https://user-images.githubusercontent.com/32417365/46333959-f4f90580-c63f-11e8-9da7-994d1b490227.png) ![image](https://user-images.githubusercontent.com/32417365/46334097-65a02200-c640-11e8-874b-4b4763ba8e94.png) please fix this out... thank you

Metadata

Metadata

Assignees

No one assigned

Labels

No labelsNo labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Tag » Code Z_buf_error Npm Install