cli icon indicating copy to clipboard operation
cli copied to clipboard

Command failed: yarn install

Open gurbela opened this issue 4 years ago • 3 comments

Command: npx --ignore-existing react-native init TestApp --template react-native-template-typescript Error: Command failed: yarn install warning react-native > @react-native-community/cli-platform-ios > xcode > [email protected]: 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.

I have latest version of react-native and react-native-cli

gurbela avatar Oct 19 '21 15:10 gurbela

me too

leandrojo avatar Oct 23 '21 17:10 leandrojo

I am also facing this issue

√ Downloading template √ Copying template √ Processing template × Installing dependencies error Error: Command failed: yarn install warning react-native > @react-native-community/cli-platform-ios > xcode > [email protected]: 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 > @react-native-community/cli-plugin-metro > metro-core > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: 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 > [email protected]: https://github.com/lydell/resolve-url#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated warning @react-native-community/eslint-config > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. error @typescript-eslint/[email protected]: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "15.9.0" error Found incompatible module. yarn install v1.22.17 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I am trying this on windows...

abdullah-aj avatar Dec 16 '21 13:12 abdullah-aj

I am also facing this issue

√ Downloading template √ Copying template √ Processing template × Installing dependencies error Error: Command failed: yarn install warning react-native > @react-native-community/cli-platform-ios > xcode > [email protected]: 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 > @react-native-community/cli-plugin-metro > metro-core > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: 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 > [email protected]: https://github.com/lydell/resolve-url#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated warning @react-native-community/eslint-config > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. error @typescript-eslint/[email protected]: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "15.9.0" error Found incompatible module. yarn install v1.22.17 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I am trying this on windows...

Nevermind. Solved this by installing the latest version of Node

abdullah-aj avatar Dec 16 '21 13:12 abdullah-aj

You just need to install the latest version of Nodejs, it worked in my case.

Ledenwifi avatar Nov 04 '22 00:11 Ledenwifi