Failed at the [email protected] postinstall script
I have gone through these following points
- [x] Check latest documentation: https://docs.nativebase.io/
- [x] Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
- [x] Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
- [x] Check examples from NativeBase KitchenSink https://github.com/GeekyAnts/NativeBase-KitchenSink
- [x] For discussion purpose make use of NativeBase Slack: http://slack.nativebase.io/
- [x] For queries related to theme, check Theme Variables from Docs and live NativeBase Theme Editor http://nativebase.io/customizer/
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
> [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````
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
i am getting same issue
I am also getting same error