React-native-tab-view: Could not install from "node_modules/react-navigation/react-native-tab-view@github:react-navigation/react-native-tab-view

Created on 30 May 2019  ·  2Comments  ·  Source: satya164/react-native-tab-view

Bug


Current behaviour

I am trying to run `npm install` on my React Native project. I am running React Native version 0.53.3 and react-navigation version 1.5.11 and I get this error:
npm ERR! code ENOLOCAL
npm ERR! Could not install from "node_modules/react-navigation/react-native-tab-view@github:react-navigation/react-native-tab-view#36ebd834d78b841fc19778c966465d02fd1213bb" as it does not contain a package.json file.

Expected behaviour

My team ran into this issue last year and it seems that what fixed it was to do add "react-native-tab-view": "^1.3.2",, because the project did not have it inside the package.json file before. I expected for it to fully run npm install afterwards.

Code sample

This is my package.json file:

{
  "name": "NFIBEngage",
  "version": "1.0.7",
  "private": true,
  "scripts": {
    "start": "nps",
    "test": "nps setup && nps test",
    "build": "nps build",
    "prepare": "nps patcher",
    "setup": "nps setup && nps appcenter"
  },
  "dependencies": {
    "appcenter": "1.2.0",
    "appcenter-analytics": "1.2.0",
    "appcenter-crashes": "1.2.0",
    "axios": "^0.16.2",
    "date-fns": "^1.29.0",
    "instabug-reactnative": "2.7.1",
    "lodash": "^4.17.4",
    "moment": "^2.20.1",
    "payment": "^2.3.0",
    "prop-types": "^15.6.0",
    "react": "16.2.0",
    "react-native": "0.53.3",
    "react-native-autoheight-webview": "^0.6.1",
    "react-native-calendar-events": "1.6.1",
    "react-native-device-info": "^0.21.5",
    "react-native-exception-handler": "2.8.9",
    "react-native-image-progress": "^1.0.1",
    "react-native-immediate-phone-call": "^1.0.0",
    "react-native-input-scroll-view": "^1.6.7",
    "react-native-keyboard-aware-scroll-view": "^0.4.4",
    "react-native-keyboard-manager": "^4.0.13-7",
    "react-native-material-buttons": "^0.5.0",
    "react-native-material-dropdown": "^0.5.2",
    "react-native-material-tabs": "^3.5.0",
    "react-native-material-textfield": "^0.10.0",
    "react-native-onesignal": "^3.0.7",
    "react-native-popup-menu": "^0.8.3",
    "react-native-sentry": "0.32.0",
    "react-native-size-matters": "^0.1.0",
    "react-native-spinkit": "^1.1.1",
    "react-native-splash-screen": "^3.0.6",
    "react-native-svg": "^6.3.1",
    "react-native-swipe-view": "https://github.com/jjd314/react-native-swipe-view",
    "react-native-tab-view": "^1.3.2",
    "react-native-vector-icons": "^6.1.0",
    "react-native-xcode-packager": "^0.1.0",
    "react-navigation": "1.5.11",
    "react-redux": "^5.0.6",
    "recompose": "^0.26.0",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0",
    "replace-in-file": "^3.1.1"
  },
  "devDependencies": {
    "async": "^2.6.0",
    "babel-cli": "^6.24.1",
    "babel-eslint": "^8.0.2",
    "babel-jest": "23.0.0",
    "babel-plugin-module-resolver": "^3.0.0",
    "babel-preset-env": "^1.4.0",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react-native": "4.0.0",
    "babel-preset-stage-2": "^6.24.1",
    "babel-watch": "^2.0.6",
    "chalk": "^1.1.3",
    "detox": "^8.2.3",
    "eslint": "^4.12.0",
    "eslint-import-resolver-babel-module": "^4.0.0-beta.3",
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-prettier": "^2.3.1",
    "eslint-plugin-react": "^7.5.1",
    "flow-bin": "^0.46.0",
    "fs-extra": "^5.0.0",
    "jest": "23.0.0",
    "nps": "^5.7.1",
    "nps-utils": "^1.5.0",
    "patch-package": "5.1.1",
    "postinstall-prepare": "^1.0.1",
    "prettier": "^1.8.2",
    "prettier-eslint": "^8.2.2",
    "react-test-renderer": "16.2.0",
    "reactotron-react-native": "^1.14.0",
    "reactotron-redux": "^1.13.0",
    "redux-mock-store": "^1.3.0",
    "yargs": "^8.0.1"
  },
  "jest": {
    "preset": "react-native",
    "setupTestFrameworkScriptFile": "./jest-setup.js",
    "transformIgnorePatterns": [
      "/node_modules/(?!parse)/"
    ],
    "unmockedModulePathPatterns": [
      "react",
      "react-navigation",
      "axios",
      "redux",
      "redux-thunk",
      "lodash",
      "date-fns"
    ],
    "verbose": true
  },
  "detox": {
    "configurations": {
      "ios.sim.debug": {
        "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/NFIBEngage.app",
        "build": "xcodebuild -workspace ios/NFIBEngage.xcworkspace -configuration Debug -scheme NFIBEngage -sdk iphonesimulator -derivedDataPath ios/build",
        "type": "ios.simulator",
        "name": "iPhone 6"
      }
    },
    "test-runner": "jest"
  }
}

Screenshots (if applicable)

What have you tried

I tried adding "react-native-tab-view": "^1.3.2",

Your Environment

| software | version
| --------------------- | -------
| ios or android |
| react-native | 0.53.3
| react-navigation-tabs | react-navigation": "1.5.11"
| node | node v11.10.1
| npm or yarn | npm 6.7.0

Most helpful comment

I have the same issue. How to fix..?

All 2 comments

Seems like a npm bug. Closing since it's not actionable for me.

I have the same issue. How to fix..?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashusdn picture ashusdn  ·  4Comments

satya164 picture satya164  ·  3Comments

AndriiUhryn picture AndriiUhryn  ·  3Comments

chen504554911 picture chen504554911  ·  3Comments

jouderianjr picture jouderianjr  ·  3Comments