react-native cli issue

(Arnab Sutar) #1

Today suddenly react-native init command is not working. getting the following error :

D:>react-native init AwesomeProject
This will walk you through creating a new React Native project in D:\AwesomeProject
‘yarn’ is not recognized as an internal or external command,
operable program or batch file.
Installing react-native…
Consider installing yarn to make this faster:
npm WARN registry Using stale data from because the host is inaccessible – are you offline?
npm WARN registry Using stale package data from due to a request error during revalidation.
npm WARN deprecated core-js@1.2.7: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\417810\AppData\Roaming\npm-cache_logs\2019-04-23T04_56_33_521Z-debug.log
{ Error: Command failed: npm install --save --save-exact react-native
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:653:13)
at run (D:\Development_Avecto\node-v10.15.3\node_modules\react-native-cli\index.js:294:5)
at createProject (D:\Development_Avecto\node-v10.15.3\node_modules\react-native-cli\index.js:249:3)
at init (D:\Development_Avecto\node-v10.15.3\node_modules\react-native-cli\index.js:200:5)
at Object. (D:\Development_Avecto\node-v10.15.3\node_modules\react-native-cli\index.js:153:7)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
status: 1,
signal: null,
output: [ null, null, null ],
pid: 3752,
stdout: null,
stderr: null }
Command npm install --save --save-exact react-native failed.

(system) closed #2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.