npm ERR! Unexpected end of JSON input while parsing near '...Rg9e9zaVBZ
程序员文章站
2022-07-03 08:43:07
...
问题呈现
npm install @babel/preset-env --save-dev
npm ERR! Unexpected end of JSON input while parsing near '...Rg9e9zaVBZmVC6WEx1k\n'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-03-01T04_37_19_578Z-debug.log
PS C:\Users\Administrator\Desktop\webpack4.x> npm install @babel/preset-env --save-dev
npm ERR! Unexpected end of JSON input while parsing near '...Rg9e9zaVBZmVC6WEx1k\n'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-03-01T04_38_01_505Z-debug.log
解决方案
第一步:运行npm cache clean --force
npm cache clean --force
第二步:运行npm install @babel/preset-env --save-dev
npm install @babel/preset-env --save-dev
呈现结果
推荐阅读
-
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错误解决方法