Nativebase: Failed at the [email protected] postinstall script

Created on 31 Jul 2019  ยท  2Comments  ยท  Source: GeekyAnts/NativeBase

I have gone through these following points

node, npm, react-native, react and native-base version, expo version if used, xcode version

npm = 6.10.2, react-native=0.59.5, react=16.8.3, Xcode: 10.3, no expo

Expected behaviour

native-base version must be updated to 2.14.1

Actual behaviour

unable to install [email protected]

Steps to reproduce

migrate the native-base from 2.12.1 to 2.14.1

Issue Description

I am using react-native 0.59 and native-base 2.12.1, I want to update the native-base to 2.13.4 ( or latest) but when I tried to update with
$npm install [email protected]
I get the error
```myusers-mac-mini:app myuser$ npm install [email protected]

[email protected] postinstall /Users/myuser/Documents/Workspace/ReactNative/app/app/node_modules/native-base
node addEjectScript.js && opencollective-postinstall

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ NativeBase 2.0 has been succesfully installed! โ”‚
โ”‚ Run node node_modules/native-base/ejectTheme.js to copy over theme config and variables. โ”‚
โ”‚ Head over to the docs for detailed information on how to make changes to the theme. โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
sh: opencollective-postinstall: command not found
npm WARN [email protected] requires a peer of react-art@>= 16.3.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>= 16.3.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native-web@>= 0.7 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@>=3.14.1 but none is installed. You must install peer dependencies yourself.

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall: node addEjectScript.js && opencollective-postinstall
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/myuser/.npm/_logs/2019-07-31T04_36_44_052Z-debug.log````

Most helpful comment

Solved with deleting node_modules/ and $npm install

All 2 comments

Solved with deleting node_modules/ and $npm install

Its not working with this solution ..... deleted whole project and cloned it again but getting same error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitsune7 picture kitsune7  ยท  3Comments

Bundas picture Bundas  ยท  3Comments

chetnadaffodil picture chetnadaffodil  ยท  3Comments

natashache picture natashache  ยท  3Comments

natashache picture natashache  ยท  3Comments