当前位置 : 主页 > 网络编程 > 其它编程 >

UnexpectedendofJSONinputwhile...解决方法

来源:互联网 收集:自由互联 发布时间:2023-07-02
2019独角兽企业重金招聘Python工程师标准描述npminstrall出现UnexpectedendofJSONinputwhileparsingnea 2019独角兽企业重金招聘Python工程师标准>>> 描述npm instrall 出现"Unexpected end of JSON input while parsing n
2019独角兽企业重金招聘Python工程师标准描述npminstrall出现UnexpectedendofJSONinputwhileparsingnea

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

描述npm instrall 出现"Unexpected end of JSON input while parsing near..."的解决方法

场景 使用了淘宝镜像后npm install 报错

npm ERR! Unexpected end of JSON input while parsing near ...":"^20.0.4","np":"^2. 解决办法

第一步执行

npm install --registryhttps://registry.npm.taobao.org --loglevelsilly

第二步

npm cache clean --force

执行完上面两步后重新执行 npm install 完美解决问题

转:https://my.oschina.net/johnsken/blog/1836005

上一篇:EntityFramework学习笔记1Books
下一篇:没有了
网友评论