Greetings dear stackoverflow users.
I was trying to install ionic via the console, with the help of official documentation.
However, when executing the order:
npm install -g ionic, the normal download process of the package appears for a moment, then the following error appears:
npm ERR! Unexpected end of JSON input when parsing near "…," eslint-plugin-node "& # 39;
npm ERR! A complete diary of this run can be found in:
npm ERR! C: Users [usuario] AppData Roaming npm-cache_logs [nombre archivo].log
When this error appeared, I looked for it on the net, but at least I did not find anything to fix it, but I decided to uninstall it desperately.
node.js and reinstall it, and even now, the error always appears.
It should be noted that I use Windows 10, with
node.js v.10.15.13 and
Try to execute other npm commands such as:
npm install -g @ view / cli and the same error appears.
also run the
nper What is mentioned in this and this other link and that still does not work is the truth and I do not know what else to do.
Thank you very much for your help, really.