Angular cli 6 installation error

Angular cli 6 installation error



When I am running this command,


npm install -g @angular/cli



I am getting this error,


npm ERR! Unexpected end of JSON input while parsing near '...npackedSize":87169,"n'
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersKrishanuAppDataRoamingnpm-cache_logs2018-08-26T09_25_38_336Z-debug.log



I am on a windows system. Thing is that this was working on the linux a day before, now on linux i cannot create any app,


ng new ngapp



this command is showing the same error. I tried switching to a different network, but not working. I also tried updating the node and npm.


node


npm



I am new to angular programming and I have no idea what went wrong.





Try —verbose flag and give the output here
– smnbbrv
Aug 26 at 9:38



—verbose




2 Answers
2



This could be due to the cache, try the following,


npm cache clean --force



and then do


ng new app



use => npm update --save with administrator permission






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)