Todas as vezes que dou inicio no react-native init, acontece esse erro;
npm ERR! Unexpected end of JSON input while parsing near '...:"e7444c718057f6a0a36'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-06-23T18_21_53_458Z-debug.log
Error: Command failed: npm install --save --save-exact react-native
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at run (C:\Users\User\AppData\Roaming\npm\node_modules\react-native-cli\index.js:294:5)
at createProject (C:\Users\User\AppData\Roaming\npm\node_modules\react-native-cli\index.js:249:3)
at init (C:\Users\User\AppData\Roaming\npm\node_modules\react-native-cli\index.js:200:5)
at Object. (C:\Users\User\AppData\Roaming\npm\node_modules\react-native-cli\index.js:153:7)
at Module.compile (internal/modules/cjs/loader.js:774:30)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 8140,
stdout: null,
stderr: null
}
Command npm install --save --save-exact react-native
failed.
como resolver?