NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Failed at the [email protected] postinstall script

Open shubham1164 opened this issue 7 years ago • 4 comments

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````

shubham1164 avatar Jul 31 '19 04:07 shubham1164

Solved with deleting node_modules/ and $npm install

shubham1164 avatar Jul 31 '19 05:07 shubham1164

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

Bidhanchandra09 avatar Aug 29 '20 15:08 Bidhanchandra09

i am getting same issue

bilalyaqoob avatar Jan 15 '21 10:01 bilalyaqoob

I am also getting same error

pilleanand avatar Mar 22 '21 04:03 pilleanand