Closed flrnd closed 3 years ago
Same issue
@flrnd could this be an issue that's mentioned in the official doc?
Note: If the above command is failing, you may have an old version of react-native or react-native-cli installed globally on your system. To fix the issue try uninstalling the CLI:
npm uninstall -g react-native-cli or yarn global remove react-native-cli and then run the npx command again.
I've just tried the same command and it worked fine.
@flrnd please follow advice by @AlisonYoon
@radko93 @AlisonYoon I did try that before opening the issue. "It works for me" is not a proper way to handle things in my opinion.
I just launched the npx command from the doc, no globally installed.
> npx react-native init MyApp --template react-native-template-typescript
This will walk you through creating a new React Native project in /home/flrnd/MyApp
Using yarn v1.22.10
Installing react-native...
yarn add v1.22.10
info No lockfile found.
[1/4] Resolving packages...
warning react-native > @react-native-community/cli-platform-ios > xcode > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning react-native > @react-native-community/cli > metro > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning react-native > @react-native-community/cli > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-native > metro-react-native-babel-transformer@0.64.0" has unmet peer dependency "@babel/core@*".
warning "react-native > use-subscription@1.5.1" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > react-native@0.64.2" has unmet peer dependency "react@17.0.1".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 376 new dependencies.
info Direct dependencies
└─ react-native@0.64.2
info All dependencies
├─ @babel/compat-data@7.14.7
├─ @babel/helper-builder-binary-assignment-operator-visitor@7.14.5
├─ @babel/helper-compilation-targets@7.14.5
├─ @babel/helper-create-class-features-plugin@7.14.6
├─ @babel/helper-create-regexp-features-plugin@7.14.5
├─ @babel/helper-explode-assignable-expression@7.14.5
├─ @babel/helper-get-function-arity@7.14.5
├─ @babel/helper-hoist-variables@7.14.5
├─ @babel/helper-module-imports@7.14.5
├─ @babel/helper-plugin-utils@7.14.5
├─ @babel/helpers@7.14.6
├─ @babel/highlight@7.14.5
├─ @babel/plugin-proposal-class-properties@7.14.5
├─ @babel/plugin-proposal-export-default-from@7.14.5
├─ @babel/plugin-proposal-nullish-coalescing-operator@7.14.5
├─ @babel/plugin-proposal-optional-catch-binding@7.14.5
├─ @babel/plugin-proposal-optional-chaining@7.14.5
├─ @babel/plugin-syntax-class-properties@7.12.13
├─ @babel/plugin-syntax-dynamic-import@7.8.3
├─ @babel/plugin-syntax-export-default-from@7.14.5
├─ @babel/plugin-syntax-flow@7.14.5
├─ @babel/plugin-syntax-jsx@7.14.5
├─ @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
├─ @babel/plugin-syntax-object-rest-spread@7.8.3
├─ @babel/plugin-syntax-optional-catch-binding@7.8.3
├─ @babel/plugin-syntax-optional-chaining@7.8.3
├─ @babel/plugin-syntax-typescript@7.14.5
├─ @babel/plugin-transform-block-scoped-functions@7.14.5
├─ @babel/plugin-transform-exponentiation-operator@7.14.5
├─ @babel/plugin-transform-flow-strip-types@7.14.5
├─ @babel/plugin-transform-member-expression-literals@7.14.5
├─ @babel/plugin-transform-modules-commonjs@7.14.5
├─ @babel/plugin-transform-object-assign@7.14.5
├─ @babel/plugin-transform-object-super@7.14.5
├─ @babel/plugin-transform-parameters@7.14.5
├─ @babel/plugin-transform-property-literals@7.14.5
├─ @babel/plugin-transform-react-jsx-self@7.14.5
├─ @babel/plugin-transform-react-jsx-source@7.14.5
├─ @babel/plugin-transform-regenerator@7.14.5
├─ @babel/plugin-transform-runtime@7.14.5
├─ @babel/plugin-transform-sticky-regex@7.14.5
├─ @babel/plugin-transform-typescript@7.14.6
├─ @babel/plugin-transform-unicode-regex@7.14.5
├─ @babel/preset-flow@7.14.5
├─ @babel/preset-typescript@7.14.5
├─ @babel/runtime@7.14.6
├─ @babel/traverse@7.14.7
├─ @cnakazawa/watch@1.0.4
├─ @hapi/topo@5.1.0
├─ @jest/create-cache-key-function@26.6.2
├─ @react-native-community/cli-hermes@5.0.1
├─ @react-native-community/cli-platform-android@5.0.1
├─ @react-native-community/cli-platform-ios@5.0.1
├─ @react-native-community/cli-server-api@5.0.1
├─ @react-native-community/cli-types@5.0.1
├─ @react-native-community/cli@5.0.1
├─ @react-native/assets@1.0.0
├─ @react-native/normalize-color@1.0.0
├─ @react-native/polyfills@1.0.0
├─ @sideway/address@4.1.2
├─ @sideway/formula@3.0.0
├─ @sideway/pinpoint@2.0.0
├─ @types/graceful-fs@4.1.5
├─ @types/istanbul-lib-coverage@2.0.3
├─ @types/istanbul-lib-report@3.0.0
├─ @types/istanbul-reports@3.0.1
├─ @types/yargs-parser@20.2.0
├─ @types/yargs@15.0.13
├─ abort-controller@3.0.0
├─ accepts@1.3.7
├─ anser@1.4.10
├─ ansi-fragments@0.2.1
├─ anymatch@3.1.2
├─ appdirsjs@1.2.5
├─ argparse@1.0.10
├─ arr-flatten@1.1.0
├─ array-filter@0.0.1
├─ array-map@0.0.0
├─ array-reduce@0.0.0
├─ asap@2.0.6
├─ assign-symbols@1.0.0
├─ ast-types@0.14.2
├─ astral-regex@1.0.0
├─ async-limiter@1.0.1
├─ async@2.6.3
├─ atob@2.1.2
├─ babel-core@7.0.0-bridge.0
├─ babel-plugin-dynamic-import-node@2.3.3
├─ babel-plugin-polyfill-corejs2@0.2.2
├─ babel-plugin-polyfill-corejs3@0.2.3
├─ babel-plugin-polyfill-regenerator@0.2.2
├─ babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0
├─ balanced-match@1.0.2
├─ base@0.11.2
├─ base64-js@1.5.1
├─ big-integer@1.6.48
├─ bplist-creator@0.0.8
├─ bplist-parser@0.2.0
├─ brace-expansion@1.1.11
├─ braces@2.3.2
├─ bser@2.1.1
├─ buffer-from@1.1.1
├─ bytes@3.0.0
├─ cache-base@1.0.1
├─ call-bind@1.0.2
├─ caller-callsite@2.0.0
├─ caller-path@2.0.0
├─ callsites@2.0.0
├─ camelcase@6.2.0
├─ caniuse-lite@1.0.30001241
├─ capture-exit@2.0.0
├─ class-utils@0.3.6
├─ cli-cursor@2.1.0
├─ cli-spinners@2.6.0
├─ cliui@6.0.0
├─ clone-deep@4.0.1
├─ clone@1.0.4
├─ collection-visit@1.0.0
├─ color-convert@2.0.1
├─ color-name@1.1.4
├─ colorette@1.2.2
├─ colors@1.4.0
├─ command-exists@1.2.9
├─ commander@2.20.3
├─ commondir@1.0.1
├─ compressible@2.0.18
├─ compression@1.7.4
├─ concat-map@0.0.1
├─ convert-source-map@1.8.0
├─ copy-descriptor@0.1.1
├─ core-js-compat@3.15.1
├─ core-util-is@1.0.2
├─ cosmiconfig@5.2.1
├─ cross-spawn@6.0.5
├─ dayjs@1.10.5
├─ debug@2.6.9
├─ decode-uri-component@0.2.0
├─ deepmerge@3.3.0
├─ defaults@1.0.3
├─ define-properties@1.1.3
├─ denodeify@1.2.1
├─ destroy@1.0.4
├─ ee-first@1.1.1
├─ electron-to-chromium@1.3.760
├─ emoji-regex@8.0.0
├─ end-of-stream@1.4.4
├─ envinfo@7.8.1
├─ error-ex@1.3.2
├─ error-stack-parser@2.0.6
├─ errorhandler@1.5.1
├─ escalade@3.1.1
├─ esprima@4.0.1
├─ etag@1.8.1
├─ event-target-shim@5.0.1
├─ expand-brackets@2.1.4
├─ extglob@2.0.4
├─ fill-range@4.0.0
├─ finalhandler@1.1.2
├─ find-cache-dir@2.1.0
├─ flow-parser@0.121.0
├─ for-in@1.0.2
├─ fresh@0.5.2
├─ fs.realpath@1.0.0
├─ gensync@1.0.0-beta.2
├─ get-caller-file@2.0.5
├─ get-intrinsic@1.1.1
├─ get-stream@4.1.0
├─ get-value@2.0.6
├─ has-flag@4.0.0
├─ has-value@1.0.0
├─ hermes-engine@0.7.2
├─ hermes-profile-transformer@0.0.6
├─ http-errors@1.7.3
├─ image-size@0.6.3
├─ import-fresh@2.0.0
├─ imurmurhash@0.1.4
├─ inflight@1.0.6
├─ inherits@2.0.4
├─ interpret@1.4.0
├─ ip@1.1.5
├─ is-accessor-descriptor@1.0.0
├─ is-arrayish@0.2.1
├─ is-ci@2.0.0
├─ is-core-module@2.4.0
├─ is-data-descriptor@1.0.0
├─ is-descriptor@1.0.2
├─ is-directory@0.3.1
├─ is-fullwidth-code-point@2.0.0
├─ is-plain-object@2.0.4
├─ is-stream@1.1.0
├─ is-windows@1.0.2
├─ is-wsl@1.1.0
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ jest-get-type@26.3.0
├─ jest-regex-util@26.0.0
├─ jest-serializer@26.6.2
├─ jest-util@26.6.2
├─ jest-validate@26.6.2
├─ jest-worker@26.6.2
├─ jetifier@1.6.8
├─ joi@17.4.0
├─ js-tokens@4.0.0
├─ jsc-android@245459.0.0
├─ jscodeshift@0.11.0
├─ jsesc@2.5.2
├─ json-parse-better-errors@1.0.2
├─ json5@2.2.0
├─ jsonfile@4.0.0
├─ jsonify@0.0.0
├─ klaw@1.3.1
├─ kleur@3.0.3
├─ locate-path@5.0.0
├─ lodash.debounce@4.0.8
├─ lodash@4.17.21
├─ log-symbols@2.2.0
├─ logkitty@0.7.1
├─ loose-envify@1.4.0
├─ make-dir@2.1.0
├─ makeerror@1.0.11
├─ map-visit@1.0.0
├─ merge-stream@2.0.0
├─ metro-config@0.64.0
├─ metro-inspector-proxy@0.64.0
├─ metro-minify-uglify@0.64.0
├─ metro-react-native-babel-transformer@0.64.0
├─ metro-transform-worker@0.64.0
├─ mime-db@1.48.0
├─ mime-types@2.1.31
├─ mime@2.5.2
├─ mimic-fn@1.2.0
├─ minimatch@3.0.4
├─ mixin-deep@1.3.2
├─ ms@2.0.0
├─ nanomatch@1.2.13
├─ negotiator@0.6.2
├─ neo-async@2.6.2
├─ nice-try@1.0.5
├─ nocache@2.1.0
├─ node-dir@0.1.17
├─ node-fetch@2.6.1
├─ node-int64@0.4.0
├─ node-modules-regexp@1.0.0
├─ node-releases@1.1.73
├─ node-stream-zip@1.13.6
├─ normalize-path@3.0.0
├─ npm-run-path@2.0.2
├─ ob1@0.64.0
├─ object-copy@0.1.0
├─ object-keys@1.1.1
├─ object.assign@4.1.2
├─ on-headers@1.0.2
├─ once@1.4.0
├─ onetime@2.0.1
├─ open@6.4.0
├─ options@0.0.6
├─ os-tmpdir@1.0.2
├─ p-finally@1.0.0
├─ p-limit@2.3.0
├─ p-locate@4.1.0
├─ p-try@2.2.0
├─ parse-json@4.0.0
├─ pascalcase@0.1.1
├─ path-exists@4.0.0
├─ path-is-absolute@1.0.1
├─ path-key@2.0.1
├─ path-parse@1.0.7
├─ picomatch@2.3.0
├─ pify@4.0.1
├─ pirates@4.0.1
├─ pkg-dir@3.0.0
├─ posix-character-classes@0.1.1
├─ process-nextick-args@2.0.1
├─ promise@8.1.0
├─ prompts@2.4.1
├─ prop-types@15.7.2
├─ pump@3.0.0
├─ range-parser@1.2.1
├─ react-devtools-core@4.13.5
├─ react-is@16.13.1
├─ react-native-codegen@0.0.6
├─ react-native@0.64.2
├─ readable-stream@2.3.7
├─ recast@0.20.4
├─ rechoir@0.6.2
├─ regenerate-unicode-properties@8.2.0
├─ regenerator-runtime@0.13.7
├─ regenerator-transform@0.14.5
├─ regexpu-core@4.7.1
├─ regjsgen@0.5.2
├─ regjsparser@0.6.9
├─ remove-trailing-separator@1.1.0
├─ repeat-element@1.1.4
├─ require-directory@2.1.1
├─ require-main-filename@2.0.0
├─ resolve-from@3.0.0
├─ resolve-url@0.2.1
├─ resolve@1.20.0
├─ restore-cursor@2.0.0
├─ ret@0.1.15
├─ rsvp@4.8.5
├─ safe-buffer@5.1.2
├─ sane@4.1.0
├─ sax@1.2.4
├─ scheduler@0.20.2
├─ semver@6.3.0
├─ send@0.17.1
├─ serialize-error@2.1.0
├─ set-blocking@2.0.0
├─ set-value@2.0.1
├─ setprototypeof@1.1.1
├─ shallow-clone@3.0.1
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ shell-quote@1.7.2
├─ shelljs@0.8.4
├─ simple-plist@1.1.1
├─ sisteransi@1.0.5
├─ slash@3.0.0
├─ slice-ansi@2.1.0
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ source-map-resolve@0.5.3
├─ source-map-support@0.5.19
├─ source-map-url@0.4.1
├─ split-string@3.1.0
├─ sprintf-js@1.0.3
├─ stackframe@1.2.0
├─ stacktrace-parser@0.1.10
├─ static-extend@0.1.2
├─ statuses@1.5.0
├─ stream-buffers@2.2.0
├─ string_decoder@1.1.1
├─ string-width@4.2.2
├─ strip-eof@1.0.0
├─ sudo-prompt@9.2.1
├─ supports-color@7.2.0
├─ temp@0.8.3
├─ throat@5.0.0
├─ through2@2.0.5
├─ tmpl@1.0.4
├─ to-fast-properties@2.0.0
├─ to-object-path@0.3.0
├─ to-regex-range@2.1.1
├─ toidentifier@1.0.0
├─ type-fest@0.7.1
├─ uglify-es@3.3.9
├─ ultron@1.0.2
├─ unicode-canonical-property-names-ecmascript@1.0.4
├─ unicode-match-property-ecmascript@1.0.4
├─ unicode-match-property-value-ecmascript@1.2.0
├─ unicode-property-aliases-ecmascript@1.1.0
├─ union-value@1.0.1
├─ universalify@0.1.2
├─ unpipe@1.0.0
├─ unset-value@1.0.0
├─ urix@0.1.0
├─ use-subscription@1.5.1
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ utils-merge@1.0.1
├─ uuid@3.4.0
├─ vary@1.1.2
├─ walker@1.0.7
├─ whatwg-fetch@3.6.2
├─ which-module@2.0.0
├─ which@1.3.1
├─ wrap-ansi@6.2.0
├─ write-file-atomic@2.4.3
├─ xcode@2.1.0
├─ xmlbuilder@9.0.7
├─ xmldoc@1.1.2
├─ xmldom@0.5.0
├─ xtend@4.0.2
├─ y18n@4.0.3
└─ yargs-parser@18.1.3
Done in 6.60s.
info Setting up new React Native app in /home/flrnd/MyApp
info Fetching template react-native-template-react-native-template-typescript...
(node:4804) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
yarn add v1.22.10
[1/4] Resolving packages...
warning @react-native-community/eslint-config > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
error An unexpected error occurred: "https://registry.yarnpkg.com/react-native-template-react-native-template-typescript: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/home/flrnd/MyApp/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
yarn remove v1.22.10
[1/2] Removing module react-native-template-react-native-template-typescript...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
warn Failed to clean up template temp files in node_modules/react-native-template-react-native-template-typescript. This is not a critical error, you can work on your app.
(node:4804) UnhandledPromiseRejectionWarning: Error: Command failed: yarn add react-native-template-react-native-template-typescript
at makeError (/home/flrnd/MyApp/node_modules/execa/index.js:174:9)
at /home/flrnd/MyApp/node_modules/execa/index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async createFromRemoteTemplate (/home/flrnd/MyApp/node_modules/@react-native-community/cli/build/tools/generator/templates.js:115:5)
at async createProjectFromTemplate (/home/flrnd/MyApp/node_modules/@react-native-community/cli/build/tools/generator/templates.js:88:3)
at async generateProject (/home/flrnd/MyApp/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:118:3)
at async Object.initCompat (/home/flrnd/MyApp/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:105:3)
(node:4804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:4804) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
So it obviously something wrong because you can check on the log things like Removing module react-native-template-react-native-template-typescript.
Also, you can launch npx react-native init MyApp --template typescript
which finish the install.
> npx react-native init MyApp --template typescript
This will walk you through creating a new React Native project in /home/flrnd/MyApp
Using yarn v1.22.10
Installing react-native...
yarn add v1.22.10
info No lockfile found.
[1/4] Resolving packages...
warning react-native > @react-native-community/cli-platform-ios > xcode > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning react-native > @react-native-community/cli > metro-core > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning react-native > @react-native-community/cli > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-native > metro-react-native-babel-transformer@0.64.0" has unmet peer dependency "@babel/core@*".
warning "react-native > use-subscription@1.5.1" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > react-native@0.64.2" has unmet peer dependency "react@17.0.1".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 376 new dependencies.
info Direct dependencies
└─ react-native@0.64.2
info All dependencies
├─ @babel/compat-data@7.14.7
├─ @babel/helper-builder-binary-assignment-operator-visitor@7.14.5
├─ @babel/helper-compilation-targets@7.14.5
├─ @babel/helper-create-class-features-plugin@7.14.6
├─ @babel/helper-create-regexp-features-plugin@7.14.5
├─ @babel/helper-explode-assignable-expression@7.14.5
├─ @babel/helper-get-function-arity@7.14.5
├─ @babel/helper-hoist-variables@7.14.5
├─ @babel/helper-module-imports@7.14.5
├─ @babel/helper-plugin-utils@7.14.5
├─ @babel/helpers@7.14.6
├─ @babel/highlight@7.14.5
├─ @babel/plugin-proposal-class-properties@7.14.5
├─ @babel/plugin-proposal-export-default-from@7.14.5
├─ @babel/plugin-proposal-nullish-coalescing-operator@7.14.5
├─ @babel/plugin-proposal-optional-catch-binding@7.14.5
├─ @babel/plugin-proposal-optional-chaining@7.14.5
├─ @babel/plugin-syntax-class-properties@7.12.13
├─ @babel/plugin-syntax-dynamic-import@7.8.3
├─ @babel/plugin-syntax-export-default-from@7.14.5
├─ @babel/plugin-syntax-flow@7.14.5
├─ @babel/plugin-syntax-jsx@7.14.5
├─ @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
├─ @babel/plugin-syntax-object-rest-spread@7.8.3
├─ @babel/plugin-syntax-optional-catch-binding@7.8.3
├─ @babel/plugin-syntax-optional-chaining@7.8.3
├─ @babel/plugin-syntax-typescript@7.14.5
├─ @babel/plugin-transform-block-scoped-functions@7.14.5
├─ @babel/plugin-transform-exponentiation-operator@7.14.5
├─ @babel/plugin-transform-flow-strip-types@7.14.5
├─ @babel/plugin-transform-member-expression-literals@7.14.5
├─ @babel/plugin-transform-modules-commonjs@7.14.5
├─ @babel/plugin-transform-object-assign@7.14.5
├─ @babel/plugin-transform-object-super@7.14.5
├─ @babel/plugin-transform-parameters@7.14.5
├─ @babel/plugin-transform-property-literals@7.14.5
├─ @babel/plugin-transform-react-jsx-self@7.14.5
├─ @babel/plugin-transform-react-jsx-source@7.14.5
├─ @babel/plugin-transform-regenerator@7.14.5
├─ @babel/plugin-transform-runtime@7.14.5
├─ @babel/plugin-transform-sticky-regex@7.14.5
├─ @babel/plugin-transform-typescript@7.14.6
├─ @babel/plugin-transform-unicode-regex@7.14.5
├─ @babel/preset-flow@7.14.5
├─ @babel/preset-typescript@7.14.5
├─ @babel/runtime@7.14.6
├─ @babel/traverse@7.14.7
├─ @cnakazawa/watch@1.0.4
├─ @hapi/topo@5.1.0
├─ @jest/create-cache-key-function@26.6.2
├─ @react-native-community/cli-hermes@5.0.1
├─ @react-native-community/cli-platform-android@5.0.1
├─ @react-native-community/cli-platform-ios@5.0.1
├─ @react-native-community/cli-server-api@5.0.1
├─ @react-native-community/cli-types@5.0.1
├─ @react-native-community/cli@5.0.1
├─ @react-native/assets@1.0.0
├─ @react-native/normalize-color@1.0.0
├─ @react-native/polyfills@1.0.0
├─ @sideway/address@4.1.2
├─ @sideway/formula@3.0.0
├─ @sideway/pinpoint@2.0.0
├─ @types/graceful-fs@4.1.5
├─ @types/istanbul-lib-coverage@2.0.3
├─ @types/istanbul-lib-report@3.0.0
├─ @types/istanbul-reports@3.0.1
├─ @types/yargs-parser@20.2.0
├─ @types/yargs@15.0.13
├─ abort-controller@3.0.0
├─ accepts@1.3.7
├─ anser@1.4.10
├─ ansi-fragments@0.2.1
├─ anymatch@3.1.2
├─ appdirsjs@1.2.5
├─ argparse@1.0.10
├─ arr-flatten@1.1.0
├─ array-filter@0.0.1
├─ array-map@0.0.0
├─ array-reduce@0.0.0
├─ asap@2.0.6
├─ assign-symbols@1.0.0
├─ ast-types@0.14.2
├─ astral-regex@1.0.0
├─ async-limiter@1.0.1
├─ async@2.6.3
├─ atob@2.1.2
├─ babel-core@7.0.0-bridge.0
├─ babel-plugin-dynamic-import-node@2.3.3
├─ babel-plugin-polyfill-corejs2@0.2.2
├─ babel-plugin-polyfill-corejs3@0.2.3
├─ babel-plugin-polyfill-regenerator@0.2.2
├─ babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0
├─ balanced-match@1.0.2
├─ base@0.11.2
├─ base64-js@1.5.1
├─ big-integer@1.6.48
├─ bplist-creator@0.0.8
├─ bplist-parser@0.2.0
├─ brace-expansion@1.1.11
├─ braces@2.3.2
├─ bser@2.1.1
├─ buffer-from@1.1.1
├─ bytes@3.0.0
├─ cache-base@1.0.1
├─ call-bind@1.0.2
├─ caller-callsite@2.0.0
├─ caller-path@2.0.0
├─ callsites@2.0.0
├─ camelcase@6.2.0
├─ caniuse-lite@1.0.30001241
├─ capture-exit@2.0.0
├─ class-utils@0.3.6
├─ cli-cursor@2.1.0
├─ cli-spinners@2.6.0
├─ cliui@6.0.0
├─ clone-deep@4.0.1
├─ clone@1.0.4
├─ collection-visit@1.0.0
├─ color-convert@2.0.1
├─ color-name@1.1.4
├─ colorette@1.2.2
├─ colors@1.4.0
├─ command-exists@1.2.9
├─ commander@2.20.3
├─ commondir@1.0.1
├─ compressible@2.0.18
├─ compression@1.7.4
├─ concat-map@0.0.1
├─ convert-source-map@1.8.0
├─ copy-descriptor@0.1.1
├─ core-js-compat@3.15.1
├─ core-util-is@1.0.2
├─ cosmiconfig@5.2.1
├─ cross-spawn@6.0.5
├─ dayjs@1.10.5
├─ debug@2.6.9
├─ decode-uri-component@0.2.0
├─ deepmerge@3.3.0
├─ defaults@1.0.3
├─ define-properties@1.1.3
├─ denodeify@1.2.1
├─ destroy@1.0.4
├─ ee-first@1.1.1
├─ electron-to-chromium@1.3.760
├─ emoji-regex@8.0.0
├─ end-of-stream@1.4.4
├─ envinfo@7.8.1
├─ error-ex@1.3.2
├─ error-stack-parser@2.0.6
├─ errorhandler@1.5.1
├─ escalade@3.1.1
├─ esprima@4.0.1
├─ etag@1.8.1
├─ event-target-shim@5.0.1
├─ expand-brackets@2.1.4
├─ extglob@2.0.4
├─ fill-range@4.0.0
├─ finalhandler@1.1.2
├─ find-cache-dir@2.1.0
├─ flow-parser@0.121.0
├─ for-in@1.0.2
├─ fresh@0.5.2
├─ fs.realpath@1.0.0
├─ gensync@1.0.0-beta.2
├─ get-caller-file@2.0.5
├─ get-intrinsic@1.1.1
├─ get-stream@4.1.0
├─ get-value@2.0.6
├─ has-flag@4.0.0
├─ has-value@1.0.0
├─ hermes-engine@0.7.2
├─ hermes-profile-transformer@0.0.6
├─ http-errors@1.7.3
├─ image-size@0.6.3
├─ import-fresh@2.0.0
├─ imurmurhash@0.1.4
├─ inflight@1.0.6
├─ inherits@2.0.4
├─ interpret@1.4.0
├─ ip@1.1.5
├─ is-accessor-descriptor@1.0.0
├─ is-arrayish@0.2.1
├─ is-ci@2.0.0
├─ is-core-module@2.4.0
├─ is-data-descriptor@1.0.0
├─ is-descriptor@1.0.2
├─ is-directory@0.3.1
├─ is-fullwidth-code-point@2.0.0
├─ is-plain-object@2.0.4
├─ is-stream@1.1.0
├─ is-windows@1.0.2
├─ is-wsl@1.1.0
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ jest-get-type@26.3.0
├─ jest-regex-util@26.0.0
├─ jest-serializer@26.6.2
├─ jest-util@26.6.2
├─ jest-validate@26.6.2
├─ jest-worker@26.6.2
├─ jetifier@1.6.8
├─ joi@17.4.0
├─ js-tokens@4.0.0
├─ jsc-android@245459.0.0
├─ jscodeshift@0.11.0
├─ jsesc@2.5.2
├─ json-parse-better-errors@1.0.2
├─ json5@2.2.0
├─ jsonfile@4.0.0
├─ jsonify@0.0.0
├─ klaw@1.3.1
├─ kleur@3.0.3
├─ locate-path@5.0.0
├─ lodash.debounce@4.0.8
├─ lodash@4.17.21
├─ log-symbols@2.2.0
├─ logkitty@0.7.1
├─ loose-envify@1.4.0
├─ make-dir@2.1.0
├─ makeerror@1.0.11
├─ map-visit@1.0.0
├─ merge-stream@2.0.0
├─ metro-config@0.64.0
├─ metro-inspector-proxy@0.64.0
├─ metro-minify-uglify@0.64.0
├─ metro-react-native-babel-transformer@0.64.0
├─ metro-transform-worker@0.64.0
├─ mime-db@1.48.0
├─ mime-types@2.1.31
├─ mime@2.5.2
├─ mimic-fn@1.2.0
├─ minimatch@3.0.4
├─ mixin-deep@1.3.2
├─ ms@2.0.0
├─ nanomatch@1.2.13
├─ negotiator@0.6.2
├─ neo-async@2.6.2
├─ nice-try@1.0.5
├─ nocache@2.1.0
├─ node-dir@0.1.17
├─ node-fetch@2.6.1
├─ node-int64@0.4.0
├─ node-modules-regexp@1.0.0
├─ node-releases@1.1.73
├─ node-stream-zip@1.13.6
├─ normalize-path@3.0.0
├─ npm-run-path@2.0.2
├─ ob1@0.64.0
├─ object-copy@0.1.0
├─ object-keys@1.1.1
├─ object.assign@4.1.2
├─ on-headers@1.0.2
├─ once@1.4.0
├─ onetime@2.0.1
├─ open@6.4.0
├─ options@0.0.6
├─ os-tmpdir@1.0.2
├─ p-finally@1.0.0
├─ p-limit@2.3.0
├─ p-locate@4.1.0
├─ p-try@2.2.0
├─ parse-json@4.0.0
├─ pascalcase@0.1.1
├─ path-exists@4.0.0
├─ path-is-absolute@1.0.1
├─ path-key@2.0.1
├─ path-parse@1.0.7
├─ picomatch@2.3.0
├─ pify@4.0.1
├─ pirates@4.0.1
├─ pkg-dir@3.0.0
├─ posix-character-classes@0.1.1
├─ process-nextick-args@2.0.1
├─ promise@8.1.0
├─ prompts@2.4.1
├─ prop-types@15.7.2
├─ pump@3.0.0
├─ range-parser@1.2.1
├─ react-devtools-core@4.13.5
├─ react-is@16.13.1
├─ react-native-codegen@0.0.6
├─ react-native@0.64.2
├─ readable-stream@2.3.7
├─ recast@0.20.4
├─ rechoir@0.6.2
├─ regenerate-unicode-properties@8.2.0
├─ regenerator-runtime@0.13.7
├─ regenerator-transform@0.14.5
├─ regexpu-core@4.7.1
├─ regjsgen@0.5.2
├─ regjsparser@0.6.9
├─ remove-trailing-separator@1.1.0
├─ repeat-element@1.1.4
├─ require-directory@2.1.1
├─ require-main-filename@2.0.0
├─ resolve-from@3.0.0
├─ resolve-url@0.2.1
├─ resolve@1.20.0
├─ restore-cursor@2.0.0
├─ ret@0.1.15
├─ rsvp@4.8.5
├─ safe-buffer@5.1.2
├─ sane@4.1.0
├─ sax@1.2.4
├─ scheduler@0.20.2
├─ semver@6.3.0
├─ send@0.17.1
├─ serialize-error@2.1.0
├─ set-blocking@2.0.0
├─ set-value@2.0.1
├─ setprototypeof@1.1.1
├─ shallow-clone@3.0.1
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ shell-quote@1.7.2
├─ shelljs@0.8.4
├─ simple-plist@1.1.1
├─ sisteransi@1.0.5
├─ slash@3.0.0
├─ slice-ansi@2.1.0
├─ snapdragon-node@2.1.1
├─ snapdragon-util@3.0.1
├─ source-map-resolve@0.5.3
├─ source-map-support@0.5.19
├─ source-map-url@0.4.1
├─ split-string@3.1.0
├─ sprintf-js@1.0.3
├─ stackframe@1.2.0
├─ stacktrace-parser@0.1.10
├─ static-extend@0.1.2
├─ statuses@1.5.0
├─ stream-buffers@2.2.0
├─ string_decoder@1.1.1
├─ string-width@4.2.2
├─ strip-eof@1.0.0
├─ sudo-prompt@9.2.1
├─ supports-color@7.2.0
├─ temp@0.8.3
├─ throat@5.0.0
├─ through2@2.0.5
├─ tmpl@1.0.4
├─ to-fast-properties@2.0.0
├─ to-object-path@0.3.0
├─ to-regex-range@2.1.1
├─ toidentifier@1.0.0
├─ type-fest@0.7.1
├─ uglify-es@3.3.9
├─ ultron@1.0.2
├─ unicode-canonical-property-names-ecmascript@1.0.4
├─ unicode-match-property-ecmascript@1.0.4
├─ unicode-match-property-value-ecmascript@1.2.0
├─ unicode-property-aliases-ecmascript@1.1.0
├─ union-value@1.0.1
├─ universalify@0.1.2
├─ unpipe@1.0.0
├─ unset-value@1.0.0
├─ urix@0.1.0
├─ use-subscription@1.5.1
├─ use@3.1.1
├─ util-deprecate@1.0.2
├─ utils-merge@1.0.1
├─ uuid@3.4.0
├─ vary@1.1.2
├─ walker@1.0.7
├─ whatwg-fetch@3.6.2
├─ which-module@2.0.0
├─ which@1.3.1
├─ wrap-ansi@6.2.0
├─ write-file-atomic@2.4.3
├─ xcode@2.1.0
├─ xmlbuilder@9.0.7
├─ xmldoc@1.1.2
├─ xmldom@0.5.0
├─ xtend@4.0.2
├─ y18n@4.0.3
└─ yargs-parser@18.1.3
Done in 5.84s.
info Setting up new React Native app in /home/flrnd/MyApp
info Fetching template react-native-template-typescript...
(node:5204) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
yarn add v1.22.10
[1/4] Resolving packages...
warning @react-native-community/eslint-config > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 200 new dependencies.
info Direct dependencies
├─ @react-native-community/eslint-config@2.0.0
├─ eslint@7.14.0
├─ jest@26.6.3
├─ react-native-template-typescript@6.6.4
├─ react-test-renderer@17.0.1
└─ react@17.0.1
info All dependencies
├─ @babel/plugin-syntax-async-generators@7.8.4
├─ @babel/plugin-syntax-bigint@7.8.3
├─ @babel/plugin-syntax-import-meta@7.10.4
├─ @babel/plugin-syntax-json-strings@7.8.3
├─ @babel/plugin-syntax-logical-assignment-operators@7.10.4
├─ @babel/plugin-syntax-numeric-separator@7.10.4
├─ @babel/plugin-syntax-top-level-await@7.14.5
├─ @bcoe/v8-coverage@0.2.3
├─ @eslint/eslintrc@0.2.2
├─ @istanbuljs/load-nyc-config@1.1.0
├─ @jest/globals@26.6.2
├─ @jest/reporters@26.6.2
├─ @jest/test-sequencer@26.6.3
├─ @react-native-community/eslint-config@2.0.0
├─ @react-native-community/eslint-plugin@1.1.0
├─ @sinonjs/commons@1.8.3
├─ @sinonjs/fake-timers@6.0.1
├─ @tootallnate/once@1.1.2
├─ @types/babel__core@7.1.14
├─ @types/babel__generator@7.6.2
├─ @types/babel__template@7.4.0
├─ @types/babel__traverse@7.14.0
├─ @types/eslint-visitor-keys@1.0.0
├─ @types/json-schema@7.0.7
├─ @types/normalize-package-data@2.4.0
├─ @types/prettier@2.3.0
├─ @types/stack-utils@2.0.0
├─ @typescript-eslint/eslint-plugin@3.10.1
├─ @typescript-eslint/parser@3.10.1
├─ @typescript-eslint/visitor-keys@3.10.1
├─ abab@2.0.5
├─ acorn-globals@6.0.0
├─ acorn-jsx@5.3.1
├─ acorn-walk@7.2.0
├─ acorn@7.4.1
├─ ajv@6.12.6
├─ ansi-colors@4.1.1
├─ array-includes@3.1.3
├─ array.prototype.flatmap@1.2.4
├─ asynckit@0.4.0
├─ babel-eslint@10.1.0
├─ babel-plugin-jest-hoist@26.6.2
├─ babel-preset-current-node-syntax@1.0.1
├─ babel-preset-jest@26.6.2
├─ browser-process-hrtime@1.0.0
├─ char-regex@1.0.2
├─ cjs-module-lexer@0.6.0
├─ co@4.6.0
├─ combined-stream@1.0.8
├─ cross-spawn@7.0.3
├─ cssom@0.4.4
├─ cssstyle@2.3.0
├─ data-urls@2.0.0
├─ decimal.js@10.3.1
├─ deep-is@0.1.3
├─ delayed-stream@1.0.0
├─ detect-newline@3.1.0
├─ diff-sequences@26.6.2
├─ doctrine@3.0.0
├─ domexception@2.0.1
├─ emittery@0.7.2
├─ enquirer@2.3.6
├─ es-to-primitive@1.2.1
├─ escodegen@2.0.0
├─ eslint-config-prettier@6.15.0
├─ eslint-plugin-eslint-comments@3.2.0
├─ eslint-plugin-flowtype@2.50.3
├─ eslint-plugin-jest@22.4.1
├─ eslint-plugin-prettier@3.1.2
├─ eslint-plugin-react-hooks@4.2.0
├─ eslint-plugin-react-native-globals@0.1.2
├─ eslint-plugin-react-native@3.11.0
├─ eslint-plugin-react@7.24.0
├─ eslint-scope@5.1.1
├─ eslint-utils@2.1.0
├─ eslint-visitor-keys@1.3.0
├─ eslint@7.14.0
├─ esquery@1.4.0
├─ esrecurse@4.3.0
├─ fast-deep-equal@3.1.3
├─ fast-diff@1.2.0
├─ fast-levenshtein@2.0.6
├─ file-entry-cache@5.0.1
├─ flat-cache@2.0.1
├─ flatted@2.0.2
├─ form-data@3.0.1
├─ get-package-type@0.1.0
├─ get-stdin@6.0.0
├─ glob-parent@5.1.2
├─ growly@1.3.0
├─ has-bigints@1.0.1
├─ hosted-git-info@2.8.9
├─ html-encoding-sniffer@2.0.1
├─ html-escaper@2.0.2
├─ http-proxy-agent@4.0.1
├─ https-proxy-agent@5.0.0
├─ human-signals@1.1.1
├─ iconv-lite@0.4.24
├─ import-fresh@3.3.0
├─ internal-slot@1.0.3
├─ is-bigint@1.0.2
├─ is-boolean-object@1.1.1
├─ is-callable@1.2.3
├─ is-date-object@1.0.4
├─ is-docker@2.2.1
├─ is-extglob@2.1.1
├─ is-generator-fn@2.1.0
├─ is-negative-zero@2.0.1
├─ is-number-object@1.0.5
├─ is-potential-custom-element-name@1.0.1
├─ is-regex@1.1.3
├─ is-symbol@1.0.4
├─ istanbul-lib-instrument@4.0.3
├─ istanbul-lib-source-maps@4.0.0
├─ istanbul-reports@3.0.2
├─ jest-changed-files@26.6.2
├─ jest-cli@26.6.3
├─ jest-docblock@26.0.0
├─ jest-each@26.6.2
├─ jest-environment-jsdom@26.6.2
├─ jest-environment-node@26.6.2
├─ jest-jasmine2@26.6.3
├─ jest-leak-detector@26.6.2
├─ jest-pnp-resolver@1.2.2
├─ jest-resolve-dependencies@26.6.3
├─ jest-watcher@26.6.2
├─ jest@26.6.3
├─ jsdom@16.6.0
├─ json-parse-even-better-errors@2.3.1
├─ json-schema-traverse@0.4.1
├─ json-stable-stringify-without-jsonify@1.0.1
├─ jsx-ast-utils@3.2.0
├─ lines-and-columns@1.1.6
├─ lru-cache@6.0.0
├─ mimic-fn@2.1.0
├─ node-notifier@8.0.2
├─ normalize-package-data@2.5.0
├─ nwsapi@2.2.0
├─ object-inspect@1.10.3
├─ object.entries@1.1.4
├─ object.fromentries@2.0.4
├─ object.values@1.1.4
├─ onetime@5.1.2
├─ optionator@0.9.1
├─ p-each-series@2.2.0
├─ parent-module@1.0.1
├─ parse5@6.0.1
├─ pkg-dir@4.2.0
├─ prettier-linter-helpers@1.0.0
├─ prettier@2.3.2
├─ progress@2.0.3
├─ psl@1.8.0
├─ react-native-template-typescript@6.6.4
├─ react-shallow-renderer@16.14.1
├─ react-test-renderer@17.0.1
├─ react@17.0.1
├─ read-pkg-up@7.0.1
├─ read-pkg@5.2.0
├─ regexp.prototype.flags@1.3.1
├─ regexpp@3.2.0
├─ resolve-cwd@3.0.0
├─ safer-buffer@2.1.2
├─ saxes@5.0.1
├─ shebang-command@2.0.0
├─ shebang-regex@3.0.0
├─ shellwords@0.1.1
├─ spdx-correct@3.1.1
├─ spdx-exceptions@2.3.0
├─ stack-utils@2.0.3
├─ string.prototype.matchall@4.0.5
├─ string.prototype.trimend@1.0.4
├─ string.prototype.trimstart@1.0.4
├─ strip-bom@4.0.0
├─ strip-final-newline@2.0.0
├─ strip-json-comments@3.1.1
├─ supports-hyperlinks@2.2.0
├─ symbol-tree@3.2.4
├─ table@5.4.6
├─ terminal-link@2.1.1
├─ test-exclude@6.0.0
├─ text-table@0.2.0
├─ tough-cookie@4.0.0
├─ tr46@2.1.0
├─ type-detect@4.0.8
├─ typedarray-to-buffer@3.1.5
├─ unbox-primitive@1.0.1
├─ uri-js@4.4.1
├─ v8-compile-cache@2.3.0
├─ v8-to-istanbul@7.1.2
├─ validate-npm-package-license@3.0.4
├─ w3c-hr-time@1.0.2
├─ w3c-xmlserializer@2.0.0
├─ whatwg-url@8.7.0
├─ which-boxed-primitive@1.0.2
├─ which@2.0.2
├─ word-wrap@1.2.3
├─ write-file-atomic@3.0.3
├─ write@1.0.3
├─ xmlchars@2.2.0
└─ yallist@4.0.0
Done in 6.72s.
info Adding dependencies for the project...
info No additional dependencies.
info Adding develop dependencies for the project...
info No additional develop dependencies.
yarn remove v1.22.10
[1/2] Removing module react-native-template-typescript...
[2/2] Regenerating lockfile and installing missing dependencies...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
success Uninstalled packages.
Done in 1.91s.
info Adding required dependencies
yarn add v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved 0 new dependencies.
Done in 1.94s.
info Adding required dev dependencies
yarn add v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["@babel/core@^7.14.6"] is trying to unpack in the same destination "/home/flrnd/.cache/yarn/v6/npm-@babel-core-7.14.6-e0814ec1a950032ff16c13a2721de39a8416fcab-integrity/node_modules/@babel/core" as pattern ["@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.1.6","@babel/core@^7.0.0","@babel/core@^7.0.0","@babel/core@^7.1.0","@babel/core@^7.7.5","@babel/core@^7.1.0","@babel/core@^7.7.2","@babel/core@^7.0.0"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["@babel/runtime@^7.14.6"] is trying to unpack in the same destination "/home/flrnd/.cache/yarn/v6/npm-@babel-runtime-7.14.6-535203bc0892efc7dec60bdc27b2ecf6e409062d-integrity/node_modules/@babel/runtime" as pattern ["@babel/runtime@^7.8.4"]. This could result in non-deterministic behavior, skipping.
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 64 new dependencies.
info Direct dependencies
├─ @babel/core@7.14.6
├─ @babel/runtime@7.14.6
├─ @react-native-community/eslint-config@3.0.0
├─ babel-jest@27.0.6
├─ eslint@7.29.0
├─ jest@27.0.6
└─ metro-react-native-babel-preset@0.66.0
info All dependencies
├─ @babel/core@7.14.6
├─ @babel/helper-remap-async-to-generator@7.14.5
├─ @babel/helper-wrap-function@7.14.5
├─ @babel/plugin-transform-async-to-generator@7.14.5
├─ @babel/runtime@7.14.6
├─ @eslint/eslintrc@0.4.2
├─ @jest/globals@27.0.6
├─ @jest/reporters@27.0.6
├─ @jest/test-sequencer@27.0.6
├─ @nodelib/fs.scandir@2.1.5
├─ @nodelib/fs.stat@2.0.5
├─ @nodelib/fs.walk@1.2.7
├─ @react-native-community/eslint-config@3.0.0
├─ @sinonjs/fake-timers@7.1.2
├─ @types/json-schema@7.0.7
├─ @types/prettier@2.3.0
├─ @typescript-eslint/eslint-plugin@4.28.1
├─ @typescript-eslint/experimental-utils@4.28.1
├─ @typescript-eslint/parser@4.28.1
├─ array-union@2.1.0
├─ astral-regex@2.0.0
├─ babel-jest@27.0.6
├─ babel-plugin-jest-hoist@27.0.6
├─ cjs-module-lexer@1.2.1
├─ dedent@0.7.0
├─ diff-sequences@27.0.6
├─ dir-glob@3.0.1
├─ eslint-plugin-react-hooks@4.2.0
├─ eslint-plugin-react-native@3.11.0
├─ eslint@7.29.0
├─ espree@7.3.1
├─ esquery@1.4.0
├─ fast-glob@3.2.6
├─ fastq@1.11.0
├─ file-entry-cache@6.0.1
├─ flat-cache@3.0.4
├─ flatted@3.1.1
├─ globby@11.0.4
├─ human-signals@2.1.0
├─ jest-changed-files@27.0.6
├─ jest-circus@27.0.6
├─ jest-cli@27.0.6
├─ jest-docblock@27.0.6
├─ jest-jasmine2@27.0.6
├─ jest-leak-detector@27.0.6
├─ jest-resolve-dependencies@27.0.6
├─ jest-serializer@27.0.6
├─ jest-watcher@27.0.6
├─ jest@27.0.6
├─ jsdom@16.6.0
├─ lodash.clonedeep@4.5.0
├─ lodash.merge@4.6.2
├─ lodash.truncate@4.4.2
├─ metro-react-native-babel-preset@0.66.0
├─ onetime@5.1.2
├─ path-type@4.0.0
├─ queue-microtask@1.2.3
├─ require-from-string@2.0.2
├─ reusify@1.0.4
├─ run-parallel@1.2.0
├─ slice-ansi@4.0.0
├─ table@6.7.1
├─ type-fest@0.20.2
└─ v8-to-istanbul@8.0.0
Done in 8.13s.
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "/home/flrnd/MyApp" && npx react-native run-android
But even doing it this way, if you check the directory, there is both javascript AND template directory with typescript version. Which fails to launch too.
> ls
android/ App.js app.json babel.config.js index.js ios/ LICENSE metro.config.js node_modules/ package.json README.md template/ template.config.js __tests__/ yarn.lock
@flrnd Looking at your CLI output I can't really see if you tried npm uninstall -g react-native-cli
first. But I can tell quite certainly that you are using the old React Native CLI. To prevent npx
from using any existing bins please try: npx --ignore-existing react-native init MyApp --template react-native-template-typescript
This seemed to do the trick for a lot of people, so we might also want to add it to the README.md
: https://github.com/react-native-community/react-native-template-typescript/issues/80#issuecomment-536419979
I have the same problem when using the installed version. Reinstalling react-native-cli did not help. Deinstalling and using npx react-native init MyApp --template react-native-template-typescript
did work for me though.
Yeah, I actually tried uninstalling the first time and kept failing. Long story short, indeed I had a residual old version of react-native-cli
installed that I wasn't aware of, it was driving my crazy, :shrug: classic PEBKAC.
Thanks @AlisonYoon @radko93 and @emin93 for your patience :+1:
Thank you. I hava a Error Error: Command failed: yarn add react-native
,your method helped me 😊
Expected results
Create project boiler plate with typescript template using the official documentation here and here with the command:
npx react-native init MyApp --template react-native-template-typescript
Observed results
The app fails to initialize the boilerplate due an error. See error log.
Logs
error An unexpected error occurred: "https://registry.yarnpkg.com/react-native-template-react-native-template-typescript: Not found".
Steps to reproduce
npx react-native init MyApp --template react-native-template-typescript
react-native-template
creatingreact-native-template-react-native-template-typescript
, which obviously fails to install because it doesn't exists.