npm Err! Unexpected end of JSON input while parsing near
程序员文章站
2022-05-30 16:33:29
...
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 [email protected] -g
I hope this helps!
Computer Science is evolving so fast… I’m eternally a student. Here’re some of my notes.
推荐阅读
-
Unexpected end of JSON input while parsing near错误
-
亲测解决npm ERR! Unexpected end of JSON input while parsing near...的方法
-
npm ERR! Unexpected end of JSON input while parsing near
-
npm ERR! Unexpected end of JSON input while parsing near '...Rg9e9zaVBZ
-
“Unexpected end of JSON input while parsing near···”错误解决方案
-
解决npm ERR! Unexpected end of JSON input while parsing near的报错问题
-
Unexpected end of JSON input while parsing near
-
vue npm安装webpack报错:Unexpected end of JSON input while parsing near
-
Unexpected end of JSON input while parsing near错误
-
npm install出现Unexpected end of JSON input while parsing near错误解决方法