infinitered / solidarity-react-native

Solidarity snapshot plugin for React Native projects
MIT License
48 stars 10 forks source link

Getting error with react-native cli line 2 #41

Open FrederickEngelhardt opened 3 years ago

FrederickEngelhardt commented 3 years ago

Hi all,

What does line 2 refer to in the react-native binary file?

Getting the following error with exit code 2

Error section

      {
        "rule": "cli",
        "binary": "react-native",
        "semver": "0.0.0",
        "line": 2
      }

full .solidarity file

{
  "$schema": "http://json.schemastore.org/solidaritySchema",
  "requirements": {
    "Node": [
      {
        "rule": "cli",
        "binary": "node",
        "semver": "12.16.3"
      }
    ],
    "Watchman": [
      {
        "rule": "cli",
        "binary": "watchman",
        "error": "Please install watchman on this machine. Refer to the official Watchman installation instructions for additional help.",
        "platform": ["darwin", "linux"]
      }
    ],
    "React Native": [
      {
        "rule": "cli",
        "binary": "react-native",
        "semver": "4.13.1"
      },
      {
        "rule": "cli",
        "binary": "react-native",
        "semver": "0.0.0",
        "line": 2
      }
    ],
    "Package JSON": [
      {
        "rule": "file",
        "location": "./package.json"
      }
    ],
    "NPM": [
      {
        "rule": "cli",
        "binary": "npm",
        "semver": "6.14.4"
      }
    ],
    "TypeScript": [
      {
        "rule": "cli",
        "binary": "tsc",
        "semver": "3.9.7"
      }
    ],
    "Yarn": [
      {
        "rule": "cli",
        "binary": "yarn",
        "version": "--version",
        "semver": "1.22.5"
      }
    ]
  }
}