The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
unexpeced end of JSON input while parsing near '...me/-/babel-runtime-6.'
I’m new to npm and wanted to try playing with react native app
Here is what I did to get the error:
npm install -g create-react-native-app
while it was trying to install npm through this error
npm ERR! Unexpected end of JSON input while parsing near ‘…me/-/babel-runtime-6.’
npm ERR! C:…\AppData\Roaming\npm-cache_logs\2018-10-03T17_20_33_169Z-debug.log
I am new and I do not know how to pull my err logs yet (If I am able to.?)
Anyway. I did not know if someone could shine some light my way to maybe help me out?
You can find the error logs in the file mentioned in the error:
I ended up npm cach clean --force
then retried install and it worked.
Thank you for your time for trying to help.