react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Command /bin/sh failed with exit code 1 - After upgrading reactnative to 0.15.0 and NPM to 3.3.6

Open vinodsobale opened this issue 11 years ago • 4 comments

I can no longer compile in Xcode after upgrading React Native to 0.15.0 and NPM to 3.3.6. When I compile Xcode throws an error saying "Command /bin/sh failed with exit code 1".

Forgive me if this has been covered elsewhere.

vinodsobale avatar Dec 02 '15 12:12 vinodsobale

Hey vinu123, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!

facebook-github-bot avatar Dec 02 '15 12:12 facebook-github-bot

Having the same issue.. I really wish this can be fixed. also there is lot of dups of this issue ( https://github.com/facebook/react-native/issues/3948 )

gre avatar Dec 02 '15 13:12 gre

I have similar or same issue, after trying to create new project

++ export MANPATH
++ export PATH
++ hash -r
++ export NVM_PATH=/Users/null/.nvm/versions/node/v4.2.1/lib/node
++ NVM_PATH=/Users/null/.nvm/versions/node/v4.2.1/lib/node
++ export NVM_BIN=/Users/null/.nvm/versions/node/v4.2.1/bin
++ NVM_BIN=/Users/null/.nvm/versions/node/v4.2.1/bin
++ '[' '' = true ']'
++ nvm_is_iojs_version v4.2.1
+++ echo v4.2.1
+++ cut -c1-5
++ '[' _v4.2. = _iojs- ']'
++ echo 'Now using node v4.2.1'
+ react-native bundle --entry-file index.ios.js --platform ios --dev true --bundle-output /Users/null/Library/Developer/Xcode/DerivedData/PredictClient-gninzjqnjlmrdgemcxrwgqfknfnl/Build/Products/Debug-iphonesimulator/PredictClient.app/main.jsbundle --assets-dest /Users/null/Library/Developer/Xcode/DerivedData/PredictClient-gninzjqnjlmrdgemcxrwgqfknfnl/Build/Products/Debug-iphonesimulator/PredictClient.app
bundle: Created ReactPackager
uncaught error Error: SyntaxError: /Users/null/dev/TestApp/node_modules/react-native/Libraries/ReactNative/ReactNative.js: Line 74: Unsupported type annotation type: FunctionTypeAnnotation
  72 | };
  73 | 
> 74 | var render = function(
     |              ^
  75 |   element: ReactElement,
  76 |   mountInto: number,
  77 |   callback?: ?(() => void)
    at File.errorWithNode (/Users/null/dev/TestApp/node_modules/react-native/node_modules/babel-core/lib/transformation/file/index.js:489:13)
    at NodePath.errorWithNode (/Users/null/dev/TestApp/node_modules/react-native/node_modules/babel-core/lib/traversal/path/index.js:155:26)
    at NodePath.Function (/Users/null/dev/TestApp/babel-plugin-typecheck/lib/index.js:48:22)
    at NodePath.call (/Users/null/dev/TestApp/node_modules/react-native/node_modules/babel-core/lib/traversal/path/context.js:56:28)
    at NodePath.visit (/Users/null/dev/TestApp/node_modules/react-n
Command /bin/sh failed with exit code 1

gorangajic avatar Dec 02 '15 14:12 gorangajic

It seems to be fixed in 0.16-rc - https://github.com/facebook/react-native/commit/9a64f17de84e50a4fc60f1b96168aa61925934a8

satya164 avatar Dec 03 '15 03:12 satya164