npm Err! Unexpected end of JSON input while parsing near

You are trying to create a new angular, react, vue app, and you end up with an error message saying:

npm ERR! Unexpected end of JSON input while parsing near

There's a high chance that your npm cache been damaged.

Try:

npm cache clean --force

If you are a windows user, try deleting all files in this folder:

C:\Users{{your-username}}\AppData\Roaming\npm-cache

Then...

npm cache verify

If that doesn't work, try updating to the lastest (understand the risks)

npm i npm@latest -g

I hope this helps!

Computer Science is evolving so fast... I'm eternally a student. Here're some of my notes.

posted @   PrimerPlus  阅读(344)  评论(0编辑  收藏  举报
编辑推荐:
· C++代码改造为UTF-8编码问题的总结
· DeepSeek 解答了困扰我五年的技术问题
· 为什么说在企业级应用开发中,后端往往是效率杀手?
· 用 C# 插值字符串处理器写一个 sscanf
· Java 中堆内存和栈内存上的数据分布和特点
阅读排行:
· 为DeepSeek添加本地知识库
· 精选4款基于.NET开源、功能强大的通讯调试工具
· DeepSeek智能编程
· 大模型工具KTransformer的安装
· [计算机/硬件/GPU] 显卡
点击右上角即可分享
微信分享提示