Firebase-tools update failing or just reporting wrong version? - firebase

I'm trying to update firebase-tools using npm to the latest version (6.7.1). firebase -V keeps reporting the old version (6.4.0) but I am not sure if it's been updated or not. This is in Ubuntu linux
Here is what I did in the terminal
hili#dev:~$ npm list -g | grep fireb
└─┬ firebase-tools#6.4.0
├─┬ firebase#2.4.2
hili#dev:~$ sudo npm update -g firebase-tools
[sudo] password for hili:
/usr/local/bin/firebase -> /usr/local/lib/node_modules/firebase-tools/lib/bin/firebase.js
+ firebase-tools#6.7.1
updated 1 package in 15.73s
hili#dev:~$ npm list -g | grep fireb
└─┬ firebase-tools#6.4.0
├─┬ firebase#2.4.2
Note that after the update, it does report the new version but then when i list, it still shows the old one.
I tried debugging the script in /usr/local/lib/node_modules/firebase-tools/lib/bin/firebase.js and I see this
var pkg = require("../../package.json");
...
logger.debug("CLI Version: ", pkg.version);
So I check in /usr/local/lib/node_modules/firebase-tools/package.json and I see this. It seems to be a mix of the old and the new version
{
"_from": "firebase-tools#6.7.1",
"_id": "firebase-tools#6.7.1",
"_inBundle": false,
"_integrity": "sha512-8JZ2QA1gylgmlGNULrhTtkk5iS+OumCoJEgK+RNLt/ji1hSxzZehWCb13jHtqCRNRz+Kt+uwsrmExbhsNNqiBw==",
"_location": "/firebase-tools",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "firebase-tools#6.7.1",
"name": "firebase-tools",
"escapedName": "firebase-tools",
"rawSpec": "6.7.1",
"saveSpec": null,
"fetchSpec": "6.7.1"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/firebase-tools/-/firebase-tools-6.7.1.tgz",
"_shasum": "c80ddc9cfd6ca6611b50e3e656f8bee30621c6f3",
"_spec": "firebase-tools#6.7.1",
"_where": "/home/hili",
"author": {
"name": "Firebase",
"url": "https://firebase.google.com/"
},
"bin": {
"firebase": "./lib/bin/firebase.js"
},
"bugs": {
"url": "https://github.com/firebase/firebase-tools/issues"
},
"bundleDependencies": false,
"dependencies": {
"#google-cloud/functions-emulator": "^1.0.0-beta.5",
"JSONStream": "^1.2.1",
"archiver": "^2.1.1",
"cjson": "^0.3.1",
"cli-color": "^1.2.0",
"cli-table": "^0.3.1",
"commander": "^2.8.1",
"configstore": "^1.2.0",
"cross-env": "^5.1.3",
"cross-spawn": "^4.0.0",
"csv-streamify": "^3.0.4",
"didyoumean": "^1.2.1",
"es6-set": "^0.1.4",
"exit-code": "^1.0.2",
"filesize": "^3.1.3",
"firebase": "2.x.x",
"fs-extra": "^0.23.1",
"glob": "^7.1.2",
"google-auto-auth": "^0.7.2",
"inquirer": "^0.12.0",
"is": "^3.2.1",
"jsonschema": "^1.0.2",
"jsonwebtoken": "^8.2.1",
"lodash": "^4.17.10",
"minimatch": "^3.0.4",
"opn": "^5.3.0",
"ora": "0.2.3",
"portfinder": "^1.0.13",
"progress": "^2.0.0",
"request": "^2.87.0",
"semver": "^5.0.3",
"superstatic": "^6.0.1",
"tar": "^4.3.0",
"tmp": "0.0.33",
"universal-analytics": "^0.4.16",
"update-notifier": "^2.5.0",
"user-home": "^2.0.0",
"uuid": "^3.0.0",
"winston": "^1.0.1"
},
"deprecated": false,
"description": "Command-Line Interface for Firebase",
"devDependencies": {
"#types/chai": "^4.1.6",
"#types/chai-as-promised": "^7.1.0",
"#types/cli-color": "^0.3.29",
"#types/express": "^4.16.0",
"#types/glob": "^7.1.1",
"#types/lodash": "^4.14.118",
"#types/mocha": "^5.2.5",
"#types/nock": "^9.3.0",
"#types/node": "^10.12.0",
"#types/opn": "~5.1.0",
"#types/request": "^2.48.1",
"#types/sinon": "^5.0.5",
"#types/supertest": "^2.0.6",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.1",
"eslint": "^5.7.0",
"eslint-plugin-prettier": "^3.0.0",
"express": "^4.16.4",
"mocha": "^5.0.5",
"nock": "^9.3.3",
"nyc": "^13.3.0",
"prettier": "1.14.3",
"sinon": "^6.3.4",
"sinon-chai": "^3.2.0",
"source-map-support": "^0.5.9",
"supertest": "^3.3.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"tslint-plugin-prettier": "^2.0.0",
"typescript": "^3.1.3"
},
"engineStrict": true,
"engines": {
"node": ">= 6.0.0"
},
"files": [
"lib",
"templates"
],
"homepage": "https://github.com/firebase/firebase-tools",
"keywords": [
"cdn",
"cli",
"ssl",
"cloud",
"hosting",
"firebase",
"realtime",
"websockets",
"synchronization"
],
"license": "MIT",
"main": "./lib/index.js",
"name": "firebase-tools",
"nyc": {
"require": [
"ts-node/register"
],
"extension": [
".js",
".ts"
],
"exclude": [
"src/test/**/*"
]
},
"optionalDependencies": {
"#google-cloud/functions-emulator": "^1.0.0-beta.5"
},
"preferGlobal": true,
"repository": {
"type": "git",
"url": "git+https://github.com/firebase/firebase-tools.git"
},
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"clean": "rm -rf lib",
"format": "prettier --write 'src/**/*.{js,ts}'",
"lint": "npm run lint:js && npm run lint:ts",
"lint:js": "eslint 'src/**/*.js'",
"lint:ts": "tslint --project tsconfig.json --config tslint.json",
"mocha": "nyc mocha --opts mocha.opts",
"prepare": "npm run clean && npm run build",
"prepublish": "npm run clean && npm run build",
"test": "npm run lint && npm run mocha"
},
"version": "6.4.0"
}
At the beginning I see references to firebase-tools#6.7.1 but in the last line of the file I do have "version": "6.4.0"
What version is actually installed? and more importantly, how can I fix this so that i have 6.7.1 installed and reported in firebase -V

Related

ProvideModule name collision in react native

Error: jest-haste-map: #providesModule naming collision:
Duplicate module name: react-native
Paths: C:\Users\xxxx\Desktop\app\node_modules\react-native-twitter-
signin\node_modules\react-native\android\package.json collides with
C:\Users\xxxx\Desktop\app\node_modules\react-native\package.json
and below is package.json which resides in twitter node module package
{
"_from": "react-native#^0.56.0",
"_id": "react-native#0.56.1",
"_inBundle": false,
"_integrity": "sha512-PLeXNFf7yYTiR+KNmRk90xV41nh5CN54G+X26G1usOriU8WQyj52fYzoUv4VZMpA6i8I99zmOHFWHpwkeWQSxA==",
"_location": "/react-native-twitter-signin/react-native",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "react-native#^0.56.0",
"name": "react-native",
"escapedName": "react-native",
"rawSpec": "^0.56.0",
"saveSpec": null,
"fetchSpec": "^0.56.0"
},
"_requiredBy": [
"/react-native-twitter-signin"
],
"_resolved": "https://registry.npmjs.org/react-native/-/react-native-0.56.1.tgz",
"_shasum": "8d60e2a989b0a620486a68f5f7e1b451557a0e54",
"_spec": "react-native#^0.56.0",
"_where": "C:\\Users\\Vipin\\Desktop\\Fuelex\\node_modules\\react-native-twitter-signin",
"bin": {
"react-native": "local-cli/wrong-react-native.js"
},
"bugs": {
"url": "https://github.com/facebook/react-native/issues"
},
"bundleDependencies": false,
"dependencies": {
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"base64-js": "^1.1.2",
"chalk": "^1.1.1",
"commander": "^2.9.0",
"compression": "^1.7.1",
"connect": "^3.6.5",
"create-react-class": "^15.6.3",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
"envinfo": "^5.7.0",
"errorhandler": "^1.5.0",
"escape-string-regexp": "^1.0.5",
"event-target-shim": "^1.0.5",
"fbjs": "0.8.16",
"fbjs-scripts": "^0.8.1",
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"graceful-fs": "^4.1.3",
"inquirer": "^3.0.6",
"lodash": "^4.17.5",
"metro": "^0.38.1",
"metro-babel-register": "^0.38.1",
"metro-core": "^0.38.1",
"metro-memory-fs": "^0.38.1",
"mime": "^1.3.4",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"morgan": "^1.9.0",
"node-fetch": "^1.3.3",
"node-notifier": "^5.2.1",
"npmlog": "^2.0.4",
"opn": "^3.0.2",
"optimist": "^0.6.1",
"plist": "^3.0.0",
"pretty-format": "^4.2.1",
"promise": "^7.1.1",
"prop-types": "^15.5.8",
"react-clone-referenced-element": "^1.0.1",
"react-devtools-core": "^3.2.2",
"react-timer-mixin": "^0.13.2",
"regenerator-runtime": "^0.11.0",
"rimraf": "^2.5.4",
"semver": "^5.0.3",
"serve-static": "^1.13.1",
"shell-quote": "1.6.1",
"stacktrace-parser": "^0.1.3",
"ws": "^1.1.0",
"xcode": "^0.9.1",
"xmldoc": "^0.4.0",
"yargs": "^9.0.0"
},
"deprecated": false,
"description": "A framework for building native apps using React",
"devDependencies": {
"#babel/core": "7.0.0-beta.47",
"async": "^2.4.0",
"babel-eslint": "8.2.1",
"babel-generator": "^6.26.0",
"eslint": "4.17.0",
"eslint-config-fb-strict": "22.1.0",
"eslint-config-fbjs": "2.0.1",
"eslint-plugin-eslint-comments": "2.0.2",
"eslint-plugin-flowtype": "2.43.0",
"eslint-plugin-jest": "21.8.0",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-react-native": "^3.2.1",
"flow-bin": "^0.75.0",
"jest": "23.2.0",
"jest-junit": "5.1.0",
"prettier": "1.13.6",
"react": "16.4.1",
"react-test-renderer": "16.4.1",
"shelljs": "^0.7.8",
"sinon": "^2.2.0"
},
"engines": {
"node": ">=8"
},
"files": [
".flowconfig",
"android",
"cli.js",
"flow",
"flow-github",
"init.sh",
"scripts/ios-configure-glog.sh",
"scripts/ios-install-third-party.sh",
"scripts/launchPackager.bat",
"scripts/launchPackager.command",
"scripts/packager.sh",
"scripts/react-native-xcode.sh",
"jest-preset.json",
"jest",
"lib",
"rn-get-polyfills.js",
"setupBabel.js",
"Libraries",
"LICENSE",
"local-cli",
"packager",
"react.gradle",
"React.podspec",
"React",
"ReactAndroid",
"ReactCommon",
"README.md",
"third-party-podspecs"
],
"homepage": "https://github.com/facebook/react-native#readme",
"jest": {
"transform": {
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/jest/assetFileTransformer.js",
".*": "./jest/preprocessor.js"
},
"setupFiles": [
"./jest/setup.js"
],
"timers": "fake",
"moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js"
},
"testPathIgnorePatterns": [
"Libraries/Renderer",
"/node_modules/",
"local-cli/templates/"
],
"haste": {
"defaultPlatform": "ios",
"hasteImplModulePath": "<rootDir>/jest/hasteImpl.js",
"providesModuleNodeModules": [
"react-native"
],
"platforms": [
"ios",
"android"
]
},
"modulePathIgnorePatterns": [
"/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/",
"node_modules/react/node_modules/fbjs/",
"node_modules/react/lib/ReactDOM.js",
"node_modules/fbjs/lib/Map.js",
"node_modules/fbjs/lib/Promise.js",
"node_modules/fbjs/lib/fetch.js",
"node_modules/fbjs/lib/ErrorUtils.js",
"node_modules/fbjs/lib/URI.js",
"node_modules/fbjs/lib/Deferred.js",
"node_modules/fbjs/lib/PromiseMap.js",
"node_modules/fbjs/lib/UserAgent.js",
"node_modules/fbjs/lib/areEqual.js",
"node_modules/fbjs/lib/base62.js",
"node_modules/fbjs/lib/crc32.js",
"node_modules/fbjs/lib/everyObject.js",
"node_modules/fbjs/lib/fetchWithRetries.js",
"node_modules/fbjs/lib/filterObject.js",
"node_modules/fbjs/lib/flattenArray.js",
"node_modules/fbjs/lib/forEachObject.js",
"node_modules/fbjs/lib/isEmpty.js",
"node_modules/fbjs/lib/nullthrows.js",
"node_modules/fbjs/lib/removeFromArray.js",
"node_modules/fbjs/lib/resolveImmediate.js",
"node_modules/fbjs/lib/someObject.js",
"node_modules/fbjs/lib/sprintf.js",
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js",
"node_modules/jest-cli",
"node_modules/react/dist",
"node_modules/fbjs/.*/__mocks__/",
"node_modules/fbjs/node_modules/"
],
"unmockedModulePathPatterns": [
"node_modules/react/",
"Libraries/Renderer",
"promise",
"source-map",
"fastpath",
"denodeify",
"fbjs",
"sinon"
],
"testEnvironment": "node"
},
"license": "MIT",
"main": "Libraries/react-native/react-native-implementation.js",
"name": "react-native",
"peerDependencies": {
"react": "16.4.1"
},
"prettier": {
"requirePragma": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "flow"
},
"repository": {
"type": "git",
"url": "git+ssh://git#github.com/facebook/react-native.git"
},
"scripts": {
"docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .",
"docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .",
"docker-setup-android": "docker pull reactnativeci/android-base:latest",
"flow": "flow",
"lint": "eslint .",
"prettier": "find . -name node_modules -prune -or -name '*.js' -print | xargs prettier --write",
"start": "/usr/bin/env bash -c './scripts/packager.sh \"$#\" || true' --",
"test": "jest",
"test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
"test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash ContainerShip/scripts/run-ci-e2e-tests.sh --android --js",
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-instrumentation-tests.sh",
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-unit-tests.sh",
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
"test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\""
},
"version": "0.56.1"
}
And this is package.json which resides in node modules inside app folder
{
"_from": "react-native",
"_id": "react-native#0.57.8",
"_inBundle": false,
"_integrity": "sha512-K6DAMTPTq+lxVYC73y4Kh/bgLajddBaIKzwsVeV4JOoS1Fdq48/ISXD3vApV+x+/IBVTXnrT9qlA+9U6MMZCqA==",
"_location": "/react-native",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "react-native",
"name": "react-native",
"escapedName": "react-native",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/react-native/-/react-native-0.57.8.tgz",
"_shasum": "1a840fbe144cd3902cc14313a783ce28efc48cb9",
"_spec": "react-native",
"_where": "C:\\Users\\Vipin\\Desktop\\Fuelex",
"bin": {
"react-native": "local-cli/wrong-react-native.js"
},
"bugs": {
"url": "https://github.com/facebook/react-native/issues"
},
"bundleDependencies": false,
"dependencies": {
"#babel/runtime": "^7.0.0",
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"base64-js": "^1.1.2",
"chalk": "^1.1.1",
"commander": "^2.9.0",
"compression": "^1.7.1",
"connect": "^3.6.5",
"create-react-class": "^15.6.3",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
"envinfo": "^5.7.0",
"errorhandler": "^1.5.0",
"escape-string-regexp": "^1.0.5",
"event-target-shim": "^1.0.5",
"fbjs": "^1.0.0",
"fbjs-scripts": "^1.0.0",
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"graceful-fs": "^4.1.3",
"inquirer": "^3.0.6",
"lodash": "^4.17.5",
"metro": "^0.48.1",
"metro-babel-register": "^0.48.1",
"metro-core": "^0.48.1",
"metro-memory-fs": "^0.48.1",
"mime": "^1.3.4",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"morgan": "^1.9.0",
"node-fetch": "^2.2.0",
"node-notifier": "^5.2.1",
"npmlog": "^2.0.4",
"opn": "^3.0.2",
"optimist": "^0.6.1",
"plist": "^3.0.0",
"pretty-format": "^4.2.1",
"promise": "^7.1.1",
"prop-types": "^15.5.8",
"react-clone-referenced-element": "^1.0.1",
"react-devtools-core": "^3.4.2",
"react-timer-mixin": "^0.13.2",
"regenerator-runtime": "^0.11.0",
"rimraf": "^2.5.4",
"semver": "^5.0.3",
"serve-static": "^1.13.1",
"shell-quote": "1.6.1",
"stacktrace-parser": "^0.1.3",
"ws": "^1.1.5",
"xcode": "^1.0.0",
"xmldoc": "^0.4.0",
"yargs": "^9.0.0"
},
"deprecated": false,
"description": "A framework for building native apps using React",
"detox": {
"test-runner": "jest",
"runner-config": "RNTester/e2e/config.json",
"specs": "RNTester/e2e",
"configurations": {
"ios.sim.release": {
"binaryPath": "RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/",
"build": "xcodebuild -project RNTester/RNTester.xcodeproj -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -quiet",
"type": "ios.simulator",
"name": "iPhone 8"
}
}
},
"devDependencies": {
"#babel/core": "^7.0.0",
"async": "^2.4.0",
"babel-eslint": "9.0.0",
"babel-generator": "^6.26.0",
"detox": "9.0.4",
"eslint": "5.1.0",
"eslint-config-fb-strict": "22.1.0",
"eslint-config-fbjs": "2.0.1",
"eslint-plugin-eslint-comments": "^3.0.1",
"eslint-plugin-flowtype": "2.43.0",
"eslint-plugin-jest": "21.8.0",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-react-native": "^3.2.1",
"flow-bin": "^0.78.0",
"jest": "23.4.1",
"jest-junit": "5.1.0",
"prettier": "1.13.6",
"react": "16.6.3",
"react-native-dummy": "0.1.0",
"react-test-renderer": "16.6.3",
"shelljs": "^0.7.8"
},
"engines": {
"node": ">=8.3"
},
"files": [
".flowconfig",
"android",
"cli.js",
"flow",
"flow-github",
"init.sh",
"scripts/ios-configure-glog.sh",
"scripts/ios-install-third-party.sh",
"scripts/launchPackager.bat",
"scripts/launchPackager.command",
"scripts/packager.sh",
"scripts/react-native-xcode.sh",
"jest-preset.json",
"jest",
"lib",
"rn-get-polyfills.js",
"setupBabel.js",
"Libraries",
"LICENSE",
"local-cli",
"packager",
"react.gradle",
"React.podspec",
"React",
"ReactAndroid",
"ReactCommon",
"README.md",
"third-party-podspecs"
],
"homepage": "https://github.com/facebook/react-native#readme",
"jest": {
"transform": {
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/jest/assetFileTransformer.js",
".*": "./jest/preprocessor.js"
},
"setupFiles": [
"./jest/setup.js"
],
"timers": "fake",
"moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js"
},
"testPathIgnorePatterns": [
"Libraries/Renderer",
"/node_modules/",
"local-cli/templates/",
"RNTester/e2e"
],
"haste": {
"defaultPlatform": "ios",
"hasteImplModulePath": "<rootDir>/jest/hasteImpl.js",
"providesModuleNodeModules": [
"react-native"
],
"platforms": [
"ios",
"android"
]
},
"modulePathIgnorePatterns": [
"/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/",
"node_modules/react/node_modules/fbjs/",
"node_modules/react/lib/ReactDOM.js",
"node_modules/fbjs/lib/Map.js",
"node_modules/fbjs/lib/Promise.js",
"node_modules/fbjs/lib/fetch.js",
"node_modules/fbjs/lib/ErrorUtils.js",
"node_modules/fbjs/lib/URI.js",
"node_modules/fbjs/lib/Deferred.js",
"node_modules/fbjs/lib/PromiseMap.js",
"node_modules/fbjs/lib/UserAgent.js",
"node_modules/fbjs/lib/areEqual.js",
"node_modules/fbjs/lib/base62.js",
"node_modules/fbjs/lib/crc32.js",
"node_modules/fbjs/lib/everyObject.js",
"node_modules/fbjs/lib/fetchWithRetries.js",
"node_modules/fbjs/lib/filterObject.js",
"node_modules/fbjs/lib/flattenArray.js",
"node_modules/fbjs/lib/forEachObject.js",
"node_modules/fbjs/lib/isEmpty.js",
"node_modules/fbjs/lib/nullthrows.js",
"node_modules/fbjs/lib/removeFromArray.js",
"node_modules/fbjs/lib/resolveImmediate.js",
"node_modules/fbjs/lib/someObject.js",
"node_modules/fbjs/lib/sprintf.js",
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js",
"node_modules/jest-cli",
"node_modules/react/dist",
"node_modules/fbjs/.*/__mocks__/",
"node_modules/fbjs/node_modules/"
],
"unmockedModulePathPatterns": [
"node_modules/react/",
"Libraries/Renderer",
"promise",
"source-map",
"fastpath",
"denodeify",
"fbjs"
],
"testEnvironment": "node"
},
"license": "MIT",
"main": "Libraries/react-native/react-native-implementation.js",
"name": "react-native",
"peerDependencies": {
"react": "16.6.3"
},
"prettier": {
"requirePragma": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "flow"
},
"repository": {
"type": "git",
"url": "git+ssh://git#github.com/facebook/react-native.git"
},
"scripts": {
"build-ios-e2e": "detox build -c ios.sim.release",
"docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .",
"docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .",
"docker-setup-android": "docker pull reactnativeci/android-base:latest",
"flow": "flow",
"lint": "eslint .",
"prettier": "prettier \"./**/*.js\" --write",
"start": "node ./local-cli/cli.js start",
"test": "jest",
"test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
"test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash ContainerShip/scripts/run-ci-e2e-tests.sh --android --js",
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-instrumentation-tests.sh",
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-unit-tests.sh",
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
"test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\"",
"test-ios-e2e": "detox test -c ios.sim.release --cleanup"
},
"version": "0.57.8"
}
I am making a login app which have facility for login with twitter.I don't understand what's the problem here.I have tried editing both the package.json file and but error remains same.Why is this happening ? I have also tried unlinking react-native-twitter-signin and then installing again but error doesn't go away.Help me as i got in this situation

npm install how to prevent nested node_mocules folders

I have a package.json file that has
"dependencies": {
"packageA": "^1.0.0",
and this package A has another dependency in his package.json
"dependencies": {
"packageA_B": "^1.0.0",
Then, if I run npm install on windows 10, node v11.11.0 I end up having
/node_modules/packageA
/node_modules/packageA/node_modules/packageA_B
Then, if I delete this package and run npm install packageA I end up having
/node_modules/packageA
/node_modules/packageA_B
Which is what I want from the beginning. Why is this inconsistency happening? How to force to install all packages in a non-nested way?
package.json
{
"name": "first_package",
"private": true,
"description": "",
"main": "gatsby-config.js",
"version": "0.2.25",
"author": "",
"dependencies": {
"packageA": "git+https://blah.git#h5c8f72",
"gatsby": "2.1.4",
"gatsby-plugin-compile-es6-packages": "^1.0.6",
"gatsby-plugin-offline": "^2.0.24",
"gatsby-plugin-page-creator": "^2.0.10",
"gatsby-plugin-react-helmet": "^3.0.8",
"gatsby-plugin-sharp": "^2.0.25",
"gatsby-plugin-styled-components": "^3.0.6",
"gatsby-source-filesystem": "^2.0.23",
"gatsby-transformer-sharp": "^2.1.15",
"path": "0.12.7",
"react": "16.8.6",
"react-dom": "16.8.6",
"styled-components": "^4.1.3",
"styled-icons": "^7.4.2"
},
"devDependencies": {
"babel-eslint": "^10.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-standard": "^4.0.0",
"gulp": "^4.0.0",
"gulp-help": "^1.6.1",
"prettier": "^1.16.4"
},
"keywords": [
""
],
"license": "",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\""
},
"repository": {
"type": "git",
"url": "https://"
},
"bugs": {
"url": "https://"
}
}
Package A package.json
{
"name": "packageA",
"private": true,
"description": "",
"version": "0.2.25",
"main": "index.js",
"author": "",
"dependencies": {
"packageA_B": "0.2.25",
"styled-components": "4.2.0",
"styled-icons": "7.9.0",
"babel-plugin-styled-components": "1.10.0",
"gatsby-plugin-styled-components": "3.0.7",
"gatsby-plugin-page-creator": "2.0.12",
"gatsby-source-filesystem": "2.0.28",
"gatsby-plugin-compile-es6-packages": "1.1.0",
"path": "0.12.7",
"esm": "3.2.14",
"prop-types": "15.7.2",
"gatsby-plugin-gtag": "1.0.10",
"gatsby-plugin-manifest": "2.0.26",
"react-cookie-consent": "2.2.2"
},
"peerDependencies": {
"gatsby": "2.1.4",
"react": "16.8.6",
"react-dom": "16.8.6"
},
"devDependencies": {
"gatsby": "2.1.4",
"react": "16.8.6",
"react-dom": "16.8.6",
"babel-eslint": "^10.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-standard": "^4.0.0",
"gulp": "^4.0.0",
"gulp-help": "^1.6.1",
"prettier": "^1.16.4"
},
"keywords": [
""
],
"license": "",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\""
},
"repository": {
"type": "git",
"url": ""
},
"bugs": {
"url": ""
}
}
Package A_B package.json
{
"name": "packageA_B",
"version": "0.2.25",
"description": "",
"author": "",
"main": "index.js",
"license": "",
"private": false,
"dependencies": {
"styled-components": "4.2.0",
"styled-icons": "7.9.0",
"babel-plugin-styled-components": "1.10.0",
"gatsby-plugin-styled-components": "3.0.7",
"gatsby-plugin-page-creator": "2.0.12",
"gatsby-source-filesystem": "2.0.28",
"gatsby-plugin-compile-es6-packages": "1.1.0",
"path": "0.12.7",
"esm": "3.2.14",
"prop-types": "15.7.2",
"gatsby-mdx": "0.4.2",
"#mdx-js/mdx": "0.20.3",
"#mdx-js/tag": "0.20.3",
"gatsby-image": "2.0.31",
"gatsby-plugin-offline": "2.0.25",
"gatsby-plugin-react-helmet": "3.0.11",
"gatsby-plugin-sharp": "2.0.32",
"gatsby-transformer-sharp": "2.1.17",
"react-helmet": "5.2.0",
"react-share": "2.4.0"
},
"peerDependencies": {
"gatsby": "2.1.4",
"react": "16.8.6",
"react-dom": "16.8.6"
},
"devDependencies": {
"gatsby": "2.1.4",
"react": "16.8.6",
"react-dom": "16.8.6",
"babel-eslint": "^10.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-standard": "^4.0.0",
"gulp": "^4.0.0",
"gulp-help": "^1.6.1",
"prettier": "^1.16.4"
},
"keywords": [
""
],
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "npm run develop",
"serve": "gatsby serve",
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\""
},
"repository": {
"type": "git",
"url": ""
},
"bugs": {
"url": ""
}
}
Solved by specifying not an exact version "1.0.0" but a compatible version "^1.0.0". Somehow with the exact version npm doesn't share the package even though they are the exact same version. Also, running npm dedupe doesn't make anything when an exact version is specified.

You may need an appropriate loader to handle this file type - Angular 4 with React

New to this, and there are lots of examples of this issue but we don't have a webpack.config.js file so I'm not sure how to fix it!
We're using this Angular 4 project - https://github.com/ngrx/platform
And we need to import some React modules for an existing application we want to use in this project
We're getting an error when we try and build on the ...
You may need an appropriate loader to handle this file type.
| case REQUEST_GUIDE_FULFILLED:
| return {
| ...filterGuideData(action.guide),
| isLoaded: true,
| }
Here is full error
ERROR in ./showhow-admin/app/player/redux/reducers/domain/guide.js
Module parse failed: C:\workspace\showhowAdmin\platform\node_modules\source-map-loader\index.js!C:\workspace\showhowAdmin\platform\showhow-admin\app\player\redux\reducers\domain\guide.js Unexpected token (10:6)
You may need an appropriate loader to handle this file type.
| case REQUEST_GUIDE_FULFILLED:
| return {
| ...filterGuideData(action.guide),
| isLoaded: true,
| }
# ./showhow-admin/app/player/redux/reducers/domain/index.js 7:0-29
# ./showhow-admin/app/player/redux/reducers/index.js
# ./showhow-admin/app/player/redux/setupStore.js
# ./showhow-admin/app/player/redux/setupFullStore.js
# ./showhow-admin/app/player/redux/index.js
# ./showhow-admin/app/player/player.module.ts
# ./showhow-admin/app/guides/components/guide-detail.ts
# ./showhow-admin/app/guides/components/index.ts
# ./showhow-admin/app/guides/guides.module.ts
# ./showhow-admin async
# ./~/#angular/core/#angular/core.es5.js
# ./showhow-admin/main.ts
Here is the package.json, not sure where to add the parts that will handle the ...
{
"name": "#ngrx/platform",
"version": "4.0.0",
"description": "monorepo for ngrx development",
"scripts": {
"precommit": "lint-staged",
"bootstrap": "lerna bootstrap",
"build": "ts-node ./build/index.ts",
"deploy:builds": "ts-node ./build/deploy-build.ts",
"test:unit": "node ./tests.js",
"test": "nyc yarn run test:unit",
"clean": "git clean -xdf && yarn && yarn run bootstrap",
"cli": "ng",
"coverage:html": "nyc report --reporter=html",
"example:start": "yarn run build && yarn run cli -- serve",
"example:start:aot": "yarn run build && yarn run cli -- serve --aot",
"example:test": "jest --watch",
"example:build:prod": "yarn build && yarn cli -- build --aot -prod --base-href \"/platform/showhow-admin/\" --output-path \"./example-dist/showhow-admin\"",
"ci": "yarn run build && yarn run test && nyc report --reporter=text-lcov | coveralls",
"prettier": "prettier --parser typescript --single-quote --trailing-comma es5 --write \"./**/*.ts\"",
"watch:tests": "chokidar 'modules/**/*.ts' --initial -c 'nyc --reporter=text --reporter=html yarn run test:unit'",
"postinstall": "opencollective postinstall",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"release": "lerna publish --skip-npm --conventional-commits && npm run build"
},
"engines": {
"node": ">=6.9.5",
"npm": ">=4.0.0",
"yarn": ">=0.27.5 <2.0.0"
},
"lint-staged": {
"*.ts": [
"yarn prettier",
"git add"
]
},
"keywords": [
"ngrx",
"angular",
"rxjs"
],
"author": "Rob Wormald <robwormald#gmail.com>",
"license": "MIT",
"repository": {},
"nyc": {
"extension": [
".ts"
],
"exclude": [
"**/*.spec",
"**/spec/**/*"
],
"include": [
"**/*.ts",
"**/*.js"
]
},
"devDependencies": {
"#angular/animations": "^4.2.0",
"#angular/cli": "^1.2.0",
"#angular/common": "^4.2.0",
"#angular/compiler": "^4.2.0",
"#angular/compiler-cli": "^4.2.0",
"#angular/core": "^4.2.0",
"#angular/forms": "^4.2.0",
"#angular/http": "^4.2.0",
"#angular/material": "^2.0.0-beta.7",
"#angular/platform-browser": "^4.2.0",
"#angular/platform-browser-dynamic": "^4.2.0",
"#angular/platform-server": "^4.2.0",
"#angular/router": "^4.2.0",
"#ngrx/db": "^2.0.1",
"#types/fs-extra": "^2.1.0",
"#types/glob": "^5.0.30",
"#types/jasmine": "2.5.45",
"#types/jasminewd2": "^2.0.2",
"#types/jest": "^20.0.2",
"#types/jsplumb": "file:../../jsPlumb/types/jsplumb",
"#types/jsplumbtoolkit": "file:../../jsPlumb/types/jsplumbtoolkit",
"#types/node": "^7.0.5",
"#types/ora": "^0.3.31",
"#types/rimraf": "^0.0.28",
"Aframe-Material": "https://github.com/etiennepinchon/aframe-material.git",
"aframe": "0.6.1",
"aframe-animation-component": "^3.2.5",
"aframe-canvas": "0.0.6",
"aframe-draw-component": "^1.5.0",
"aframe-extras.grid": "^3.11.4",
"aframe-html-shader": "^0.2.0",
"aframe-look-at-component": "^0.6.0",
"aframe-mouse-cursor-component": "^0.5.2",
"aframe-react": "^4.3.0",
"babel-loader": "^7.1.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"chokidar": "^1.7.0",
"chokidar-cli": "^1.2.0",
"codelyzer": "^2.1.1",
"conventional-changelog": "^1.1.4",
"core-js": "^2.4.1",
"coveralls": "^2.13.0",
"cpy-cli": "^1.0.1",
"deep-freeze": "^0.0.1",
"fetch-jsonp": "^1.1.3",
"fs-extra": "^2.1.2",
"glob": "^7.1.1",
"hammerjs": "^2.0.8",
"husky": "^0.14.3",
"jasmine": "^2.5.3",
"jasmine-core": "~2.5.2",
"jasmine-marbles": "^0.0.2",
"jasmine-spec-reporter": "~3.2.0",
"jest": "^21.0.2",
"jest-preset-angular": "^3.0.1",
"jest-zone-patch": "^0.0.7",
"jsplumbtoolkit": "file:../../jsPlumb/jsplumbtoolkit.tgz",
"jsplumbtoolkit-angular": "file:../../jsPlumb/jsplumbtoolkit-angular.tgz",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"lerna": "^2.0.0",
"lint-staged": "^4.0.3",
"lodash": "^4.17.4",
"module-alias": "^2.0.0",
"ngrx-store-freeze": "^0.2.0",
"normalizr": "^3.2.3",
"nyc": "^10.1.2",
"ora": "^1.2.0",
"prettier": "^1.5.2",
"prop-types": "^15.6.0",
"protractor": "~5.1.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "^5.0.6",
"react-scripts": "1.0.14",
"redux": "^3.7.2",
"redux-observable": "^0.16.0",
"reflect-metadata": "^0.1.9",
"reselect": "^3.0.1",
"rimraf": "^2.5.4",
"rollup": "^0.50.0",
"rxjs": "^5.4.0",
"sorcery": "^0.10.0",
"tincanjs": "^0.50.0",
"ts-node": "^3.1.0",
"tslib": "1.6.0",
"tslint": "^4.4.2",
"typescript": "^2.4.0",
"uglify-js": "^2.8.22",
"url-parse": "^1.1.9",
"zone.js": "^0.8.12"
},
"dependencies": {
"#angular/cdk": "^2.0.0-beta.8",
"babel-preset-es2015": "^6.24.1",
"opencollective": "^1.0.3"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/ngrx",
"logo": "https://opencollective.com/opencollective/logo.txt"
},
"jest": {
"setupTestFrameworkScriptFile": "<rootDir>/setup-jest.ts",
"globals": {
"ts-jest": {
"tsConfigFile": "showhow-admin/tsconfig.spec.json"
},
"__TRANSFORM_HTML__": true
},
"transform": {
"^.+\\.(ts|js|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js"
},
"testMatch": [
"<rootDir>/showhow-admin/**/*.spec.ts"
],
"moduleFileExtensions": [
"ts",
"js",
"html",
"json"
],
"mapCoverage": true,
"coveragePathIgnorePatterns": [
"/node_modules/",
"/modules/*.*/"
],
"moduleNameMapper": {
"^#ngrx/(?!db)(.*)": "<rootDir>/modules/$1"
},
"transformIgnorePatterns": [
"node_modules/(?!#ngrx)"
],
"modulePathIgnorePatterns": [
"dist"
]
}
}
Here is the Angular-cli.json
{
"$schema": "./node_modules/#angular/cli/lib/config/schema.json",
"project": {
"name": "showhow-admin"
},
"apps": [
{
"root": "showhow-admin",
"outDir": "example-dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "bc",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "showhow-admin/tsconfig.app.json"
},
{
"project": "showhow-admin/tsconfig.spec.json"
},
{
"project": "e2e/tsconfig.e2e.json"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "css",
"component": {
"inlineStyle": true,
"inlineTemplate": true,
"flat": true,
"spec": false
}
}
}
Any help gratefully received, we've lost a day and half over this!
Since the example app relies on #angular-cli, you can add support for react by importing the module from any .ts file:
import * as React from 'react';
Make sure you install react as a module using npm:
npm install react --save
For type-safety and intelli-sense support, also install #types/react
npm install #types/react --save-dev

react native bundle exception java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at BundleDeltaClient

I am trying to run react-native RNTester demo app, but after the bundlingthe app crashes with below exception.
12-12 21:05:08.640 25808-25834/com.facebook.react.uiapp E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: com.facebook.react.uiapp, PID: 25808
java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
at android.util.JsonReader.nextString(JsonReader.java:408)
at com.facebook.react.devsupport.BundleDeltaClient$BundleDeltaJavaClient.processDelta(BundleDeltaClient.java:103)
at com.facebook.react.devsupport.BundleDeltaClient.processDelta(BundleDeltaClient.java:71)
at com.facebook.react.devsupport.BundleDownloader.processBundleResult(BundleDownloader.java:314)
at com.facebook.react.devsupport.BundleDownloader.access$200(BundleDownloader.java:37)
at com.facebook.react.devsupport.BundleDownloader$1.onResponse(BundleDownloader.java:174)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
Package.json
{
"name": "react-native",
"version": "1000.0.0",
"description": "A framework for building native apps using React",
"license": "MIT",
"repository": {
"type": "git",
"url": "git#github.com:facebook/react-native.git"
},
"engines": {
"node": ">=8.3"
},
"prettier": {
"requirePragma": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"parser": "flow"
},
"jest": {
"transform": {
"^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$": "<rootDir>/jest/assetFileTransformer.js",
".*": "./jest/preprocessor.js"
},
"setupFiles": [
"./jest/setup.js"
],
"timers": "fake",
"moduleNameMapper": {
"^React$": "<rootDir>/Libraries/react-native/React.js"
},
"testRegex": "/__tests__/.*-test\\.js$",
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/template",
"Libraries/Renderer",
"RNTester/e2e"
],
"haste": {
"defaultPlatform": "ios",
"hasteImplModulePath": "<rootDir>/jest/hasteImpl.js",
"providesModuleNodeModules": [
"react-native"
],
"platforms": [
"ios",
"android"
]
},
"modulePathIgnorePatterns": [
"/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/",
"node_modules/react/node_modules/fbjs/",
"node_modules/react/lib/ReactDOM.js",
"node_modules/fbjs/lib/Map.js",
"node_modules/fbjs/lib/Promise.js",
"node_modules/fbjs/lib/fetch.js",
"node_modules/fbjs/lib/ErrorUtils.js",
"node_modules/fbjs/lib/URI.js",
"node_modules/fbjs/lib/Deferred.js",
"node_modules/fbjs/lib/PromiseMap.js",
"node_modules/fbjs/lib/UserAgent.js",
"node_modules/fbjs/lib/areEqual.js",
"node_modules/fbjs/lib/base62.js",
"node_modules/fbjs/lib/crc32.js",
"node_modules/fbjs/lib/everyObject.js",
"node_modules/fbjs/lib/fetchWithRetries.js",
"node_modules/fbjs/lib/filterObject.js",
"node_modules/fbjs/lib/flattenArray.js",
"node_modules/fbjs/lib/forEachObject.js",
"node_modules/fbjs/lib/isEmpty.js",
"node_modules/fbjs/lib/removeFromArray.js",
"node_modules/fbjs/lib/resolveImmediate.js",
"node_modules/fbjs/lib/someObject.js",
"node_modules/fbjs/lib/sprintf.js",
"node_modules/fbjs/lib/xhrSimpleDataSerializer.js",
"node_modules/jest-cli",
"node_modules/react/dist",
"node_modules/fbjs/.*/__mocks__/",
"node_modules/fbjs/node_modules/"
],
"unmockedModulePathPatterns": [
"node_modules/react/",
"Libraries/Renderer",
"promise",
"source-map",
"fastpath",
"denodeify",
"fbjs"
],
"testEnvironment": "node",
"collectCoverageFrom": [
"Libraries/**/*.js"
],
"coveragePathIgnorePatterns": [
"/__tests__/",
"/vendor/",
"<rootDir>/Libraries/react-native/"
]
},
"main": "Libraries/react-native/react-native-implementation.js",
"files": [
".flowconfig",
"android",
"cli.js",
"flow",
"flow-github",
"init.sh",
"scripts/ios-configure-glog.sh",
"scripts/ios-install-third-party.sh",
"scripts/launchPackager.bat",
"scripts/launchPackager.command",
"scripts/packager.sh",
"scripts/react-native-xcode.sh",
"jest-preset.json",
"jest",
"lib",
"rn-get-polyfills.js",
"Libraries",
"LICENSE",
"packager",
"react.gradle",
"React.podspec",
"React",
"ReactAndroid",
"ReactCommon",
"README.md",
"third-party-podspecs"
],
"scripts": {
"start": "node cli.js start",
"test": "jest",
"test-ci": "JEST_JUNIT_OUTPUT=\"reports/junit/js-test-results.xml\" jest --maxWorkers=2 --ci --testResultsProcessor=\"jest-junit\"",
"flow": "flow",
"flow-check-ios": "flow check",
"flow-check-android": "flow check --flowconfig-name .flowconfig.android",
"lint": "eslint .",
"prettier": "prettier \"./**/*.js\" --write",
"docker-setup-android": "docker pull reactnativeci/android-base:latest",
"docker-build-android-base": "docker build -t reactnativeci/android-base -f ContainerShip/Dockerfile.android-base .",
"docker-build-android": "docker build -t reactnativeci/android -f ContainerShip/Dockerfile.android .",
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-instrumentation-tests.sh",
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash ContainerShip/scripts/run-android-docker-unit-tests.sh",
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash ContainerShip/scripts/run-ci-e2e-tests.sh --android --js",
"test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
"test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
"build-ios-e2e": "detox build -c ios.sim.release",
"test-ios-e2e": "detox test -c ios.sim.release --cleanup"
},
"peerDependencies": {
"react": "16.6.3"
},
"dependencies": {
"#babel/runtime": "^7.0.0",
"absolute-path": "^0.0.0",
"art": "^0.10.0",
"base64-js": "^1.1.2",
"chalk": "^2.4.1",
"commander": "^2.9.0",
"compression": "^1.7.1",
"connect": "^3.6.5",
"create-react-class": "^15.6.3",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
"envinfo": "^5.7.0",
"errorhandler": "^1.5.0",
"escape-string-regexp": "^1.0.5",
"event-target-shim": "^1.0.5",
"fbjs": "^1.0.0",
"fbjs-scripts": "^1.0.0",
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"graceful-fs": "^4.1.3",
"inquirer": "^3.0.6",
"invariant": "^2.2.4",
"jest": "24.0.0-alpha.6",
"jest-junit": "5.2.0",
"lodash": "^4.17.5",
"metro": "0.50.0",
"metro-babel-register": "0.50.0",
"metro-core": "0.50.0",
"metro-memory-fs": "0.50.0",
"mime": "^1.3.4",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"morgan": "^1.9.0",
"node-fetch": "^2.2.0",
"node-notifier": "^5.2.1",
"npmlog": "^2.0.4",
"nullthrows": "^1.1.0",
"opn": "^3.0.2",
"optimist": "^0.6.1",
"plist": "^3.0.0",
"pretty-format": "24.0.0-alpha.6",
"promise": "^7.1.1",
"prop-types": "^15.5.8",
"react-clone-referenced-element": "^1.0.1",
"react-devtools-core": "^3.4.2",
"react-native-local-cli": "1.0.0-alpha.4",
"regenerator-runtime": "^0.11.0",
"rimraf": "^2.5.4",
"semver": "^5.0.3",
"serve-static": "^1.13.1",
"shell-quote": "1.6.1",
"stacktrace-parser": "^0.1.3",
"ws": "^1.1.5",
"xcode": "^1.0.0",
"xmldoc": "^0.4.0",
"yargs": "^9.0.0"
},
"devDependencies": {
"#babel/core": "^7.0.0",
"#babel/generator": "^7.0.0",
"#reactions/component": "^2.0.2",
"async": "^2.4.0",
"babel-eslint": "9.0.0",
"detox": "9.0.4",
"coveralls": "^3.0.2",
"eslint": "5.1.0",
"eslint-config-fb-strict": "22.1.0",
"eslint-config-fbjs": "2.0.1",
"eslint-plugin-eslint-comments": "^3.0.1",
"eslint-plugin-flowtype": "2.43.0",
"eslint-plugin-jest": "21.8.0",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-react-native": "3.5.0",
"flow-bin": "^0.87.0",
"jest": "24.0.0-alpha.6",
"jest-junit": "5.2.0",
"prettier": "1.13.6",
"react": "16.6.3",
"react-native-dummy": "0.1.0",
"react-test-renderer": "16.6.3",
"shelljs": "^0.7.8"
},
"detox": {
"test-runner": "jest",
"runner-config": "RNTester/e2e/config.json",
"specs": "RNTester/e2e",
"configurations": {
"ios.sim.release": {
"binaryPath": "RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/",
"build": "xcodebuild -project RNTester/RNTester.xcodeproj -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet",
"type": "ios.simulator",
"name": "iPhone 8"
},
"ios.sim.debug": {
"binaryPath": "RNTester/build/Build/Products/Debug-iphonesimulator/RNTester.app/",
"build": "xcodebuild -project RNTester/RNTester.xcodeproj -scheme RNTester -configuration Debug -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet",
"type": "ios.simulator",
"name": "iPhone 8"
}
}
}
}
Steps to reproduce
Cloned https://github.com/facebook/react-native project directly.
RNTester (gradlew RNTester:android:app:installDebug).
Started the npm server (npm start). Bundling completed 100%.
As soon as it finish bundling app is crashing.
Device details:
Device tested on : Amazon Fire TV stick, Lenovo Yoga tab 10, Redmi
4A.
OS: Windows 10.
Thank you for the help.

npm install not working on CentOS

I am trying to setup development server on CENT OS, I installed nodejs and now trying to install dependencies using npm install, I tried many solutions on stackoverflow but It is not working for me.
This is the screenshot of centos console http://imgur.com/a/IHToP
and this is the screenshot of my local Ubuntu machine http://imgur.com/a/xhiTs
this is the package.json
{
"name": "MYAPI",
"version": "0.0.1",
"description": "The central repository for code related to the ITBOOST API.",
"private": "true",
"license": "UNLICENSED",
"author": {
"name": "Noman Maqsood",
"email": "nmaqsood#thehelpdesk.com"
},
"contributors": [],
"scripts": {
"reinstall": "rm -rf node_modules;npm install",
"test": "NODE_ENV_OVERRIDE=test ./node_modules/.bin/mocha test --timeout 3000000"
},
"main": "./bin/www",
"dependencies": {
"apidoc": "^0.15.1",
"bluebird": "^3.4.1",
"body-parser": "^1.15.1",
"compression": "^1.6.2",
"crypto": "0.0.3",
"express": "^4.13.4",
"express-subdomain": "^1.0.5",
"gulp-util": "^3.0.7",
"jsonwebtoken": "^7.0.0",
"lodash": "^3.10.1",
"moment": "^2.13.0",
"mongoose": "^4.5.0",
"mongoose-auto-increment": "^5.0.1",
"morgan": "^1.7.0",
"multer": "^1.1.0",
"mxtoolkit": "^1.0.10",
"node-env-file": "^0.1.8",
"node-schedule": "^1.1.0",
"node-ssllabs": "^0.4.3",
"nodemailer": "^2.5.0",
"nodemailer-smtp-transport": "^2.6.0",
"path": "^0.12.7",
"promisify-node": "^0.4.0",
"request": "^2.72.0",
"restify": "^4.1.1",
"ua-parser-js": "^0.7.10",
"whois-json": "^1.0.1",
"xml2js": "^0.4.16",
"xmldom": "^0.1.22",
"xoauth2": "^1.1.0",
"xpath": "0.0.23"
},
"apidoc": {
"title": "MYAPI",
"version": "1.0"
},
"esformatter": {
"plugins": [
"esformatter-quotes"
],
"quotes": {
"type": "double"
},
"indent": {
"value": "\t",
"FunctionExpression": "1",
"ArrayExpression": "1",
"ObjectExpression": "1"
}
}
}

Resources