Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

build failed: exit code 127

Tags:

reactjs

detox

created my project with my app

This is the project.json file. That I have created

{
  "name": "detox",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "ios": "react-native run-ios",
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "test:e2e":"navicotrackapp test",
    "test:e2e:build":"navicotrackapp build"

  },
  "dependencies": {
    "react": "16.6.1",
    "react-native": "0.57.7"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.49.2",
    "react-test-renderer": "16.6.1"
  },
  "jest": {
    "preset": "react-native"
  },
  "detox": {
    "configurations": {
      "ios.sim.debug": {
        "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/navicotrackapp.app",
        "build": "xcodebuild -project ios/navicotrackapp.xcodeproj -scheme navicotrackapp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
        "type": "ios.simulator",
        "name": "iPhone XR"
      }
    }
  }
}

However. When I ran the test this was the out come:

enter image description here

Questions:

  1. What did I do wrong
  2. How do I fix it?
like image 419
fypnlp Avatar asked Jun 10 '26 00:06

fypnlp


2 Answers

For those coming with yarn 127 error code problem

Take a look on https://github.com/reactstrap/reactstrap/issues/711 Most probably you just need to run in console yarn :)

like image 54
Daniel Danielecki Avatar answered Jun 12 '26 16:06

Daniel Danielecki


Just use https://app.netlify.com/drop to deploy manually on Netlify

first run this command

npm run build 
OR 
yarn run build

Then drag and drop the build folder on the website above.

like image 44
champion-runner Avatar answered Jun 12 '26 15:06

champion-runner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!